include[HTML_REMOVED]
using namespace std;
int main()
{
char c;
scanf(“%c”,&c);
double a[12][12];
int i,j;
double s=0.0;
for(i=0;i<12;i)
{
for(j=0;j<12;j)
{
scanf(“%lf”,&a[i][j]);
if(i>j)
s+=a[i][j];
}
}
if(c==’S’)
printf(“%.1f”,s);
else
printf(“%.1f”,s/66.0);
return 0;
}