Rosetta Problems

Weathercock

https://atcoder.jp/contests/arc150/tasks/arc150_e