include [HTML_REMOVED]
using namespace std;
int main()
{
char op;
cin >> op;
double s=0;
for(int i=0;i<12;i)
{
for(int j=0;j<12;j)
{
double a;
cin >>a;
if(i+j>11) s+=a;
}
}
printf(“%.1lf”,op==’S’ ? s : s/66);
}