Rosetta Problems

Hit and Valuable

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