#include <stdio.h>
int main()
{
int x,y,c;
scanf("%d%d%d",&x,&y,&c);
if((c>x)&&(c>y))
{
if((c%x==0) && (c%y==0))
{
printf("strong");
}
else if((c%x==0) || (c%y==0))
{
printf("accept");
}
else
{
printf("reject");
}
}
else
{
printf("impossible");
}
return 0;
}
No comments:
Post a Comment