Rosetta Problems

The Most Powerful Bed

https://onlinejudge.u-aizu.ac.jp/problems/2749