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