Rosetta Problems

Seventh Color

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