#include int main(){int h,w;for(scanf("%*d");~scanf("%d%d",&h,&w);){puts((h+w)%2?"sepa\n":"ryota\n");}}