#include<stdio.h>
int main(void)
{
int i,sum=0;
char a[10]={0};
while(scanf("%s",&a) != EOF)
{
if(a[0] >= 'A' && a[0] <= 'H')
a[0] =9*(a[0]-'A')+1;
else if(a[0] >= 'L' && a[0] <= 'N')
a[0] =9*(a[0]-'L')+2;
else if(a[0] >= 'P' && a[0] <= 'V')
a[0] =9*(a[0]-'P'+3)+2;
else if(a[0] >= 'J' && a[0] <= 'K')
a[0] =9*(a[0]-'J'+8)+1;
else if(a[0] >= 'X' && a[0] <= 'Y')
a[0] =9*(a[0]-'X')+3;
else if(a[0] == 'I')
a[0] =39;
else if(a[0] == 'O')
a[0] =48;
else if(a[0] == 'W')
a[0] =21;
else if(a[0] == 'Z')
a[0] =30;
for(i=1;i<9;i++)
a[i] = (a[i]-48)*(9-i);
for(i=0;i<10;i++)
sum += a[i];
sum -= 48;
if( sum%10 == 0)
printf("real\n");
else
printf("fake\n");
}
return 0;
}
丟很多測資都對,可是送出顯示答案錯誤,想請問我是不是哪裡不對