young brother problem

#include<stdio.h>
int main()
{

int a,t,c,n,m;
static int res=0;
scanf("%d",&t);
for(a=t;a>=t;a–)
{

scanf("%d",&c);
while(c–)
{
scanf("%d %d",&n,&m);
res^=(n+m+1)%3;
}

if(res==2)
printf(“Masterchef”);
else
printf(“Football”);

}

return 0;

}

its is runnin corectly in turbo c complies with proper output.
but wen submitin the program on codechef , it says wrong answer.
kindly help.

it is a problem of September 2011 long challenge

here is the link to the editorial
http://discuss.codechef.com/questions/4085/chefbro-editorial