#include <stdio.h>
#include <stdlib.h>
int main(void)
{
char h[10]={0};
int a,b,c,i;
while(scanf("%d",&h)!=EOF)
{
if(h[0]=='A') h[0]==10;
if(h[0]=='B') h[0]==11;
if(h[0]=='C') h[0]==12;
if(h[0]=='D') h[0]==13;
if(h[0]=='E') h[0]==14;
if(h[0]=='F') h[0]==15;
if(h[0]=='G') h[0]==16;
if(h[0]=='H') h[0]==17;
if(h[0]=='I') h[0]==34;
if(h[0]=='J') h[0]==18;
if(h[0]=='K') h[0]==19;
if(h[0]=='L') h[0]==20;
if(h[0]=='M') h[0]==21;
if(h[0]=='N') h[0]==22;
if(h[0]=='O') h[0]==35;
if(h[0]=='P') h[0]==23;
if(h[0]=='Q') h[0]==24;
if(h[0]=='R') h[0]==25;
if(h[0]=='S') h[0]==26;
if(h[0]=='T') h[0]==27;
if(h[0]=='U') h[0]==28;
if(h[0]=='V') h[0]==29;
if(h[0]=='W') h[0]==32;
if(h[0]=='X') h[0]==30;
if(h[0]=='Y') h[0]==31;
if(h[0]=='Z') h[0]==33;
c=((h[0]/10)+(h[0]%10)*9+h[1]*8+h[2]*7+h[3]*6+h[4]*5+h[5]*4+h[6]*3+h[7]*2+h[8]*1+h[9]);
if(c%10==0)
{
printf("real\n");
break;
}
else
{
printf("fake\n");
break;
}
}
system("PAUSE");
return 0;
}
#include
#include
int main(void)
{
char h[10]={0};
int a,b,c,i;
while(scanf("%d",&h)!=EOF)
{
if(h[0]=='A') h[0]==10;
if(h[0]=='B') h[0]==11;
if(h[0]=='C') h[0]==12;
if(h[0]=='D') h[0]==13;
if(h[0]=='E') h[0]==14;
if(h[0]=='F') h[0]==15;
if(h[0]=='G') h[0]==16;
if(h[0]=='H') h[0]==17;
if(h[0]=='I') h[0]==34;
if(h[0]=='J') h[0]==18;
if(h[0]=='K') h[0]==19;
if(h[0]=='L') h[0]==20;
if(h[0]=='M') h[0]==21;
if(h[0]=='N') h[0]==22;
if(h[0]=='O') h[0]==35;
if(h[0]=='P') h[0]==23;
if(h[0]=='Q') h[0]==24;
if(h[0]=='R') h[0]==25;
if(h[0]=='S') h[0]==26;
if(h[0]=='T') h[0]==27;
if(h[0]=='U') h[0]==28;
if(h[0]=='V') h[0]==29;
if(h[0]=='W') h[0]==32;
if(h[0]=='X') h[0]==30;
if(h[0]=='Y') h[0]==31;
if(h[0]=='Z') h[0]==33;
c=((h[0]/10)+(h[0]%10)*9+h[1]*8+h[2]*7+h[3]*6+h[4]*5+h[5]*4+h[6]*3+h[7]*2+h[8]*1+h[9]);
if(c%10==0)
{
printf("real\n");
break;
}
else
{
printf("fake\n");
break;
}
}
system("PAUSE");
return 0;
}