#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[]) {
int n,a[20][20];
int i,j;
double sum;
scanf("%d",&n);
sum=0.0;
for(i=0;i<n;i++)
{
for(j=0;j<n;j++)
scanf("%d",&a[i][j]);
}
for(j=0;j<n;j++)
{
for(i=0;i<n;i++)
{
if(a[i][j]==1)
sum+=20.0;
}
if(j==0) printf("周一:%.1lf%%\n",sum);
if(j==1) printf("周二:%.1lf%%\n",sum);
if(j==2) printf("周三:%.1lf%%\n",sum);
if(j==3) printf("周四:%.1lf%%\n",sum);
if(j==4) printf("周五:%.1lf%%\n",sum);
sum=0.0;
}
return 0;
}