#include<iostream>
using namespace std;
int main()
{
int num[]={10,11,12,13,14,15,16,17,34,18,19,20,21,22,35,23,24,25,26,27,28,29,32,30,31,33};
char word[]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char x[10],y;
while(cin>>x)
{
int i,a,b,c,tol=0,k=0;
for(i=0;i<26;i++)
{
if(x[0]==word[i])
{
c=num[i];
}
}
c=c%10*9+c/10;
for(k=8,i=1;i<9&&k>0;i++,k--)
tol=(x[i]-48)*k+tol;
tol=c+tol+(x[9]-48);
if(tol%10==0)
cout<<"real"<<endl;
else
cout<<"fake"<<endl;
}
return 0;
}
不知為何WA 有問過老師了但還是找不出問題 希望各位大神能幫個忙