N,a,b=map(int,input().split()) N-=1 pos=N%(a+b) if pos==0: print('sepa') exit() count=pos//a if count%2==1: print('sepa') else: print('ryota')