s,a,b;main(i){for(;~scanf("%d",&b);s|=--i&&abs(b,a+=b-=a)-1);putchar(s?70:84);}