while[t in"sp>r=r>s"!=print(t)for t in map(input().replace,'_'*6,"rps<=>")]:1