Rosetta Problems

じゃんけん式 (Rock-Scissors-Paper Expression)

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/1269