Rosetta Problems

X: Yet Another Die Game

https://atcoder.jp/contests/abc053/tasks/arc068_a