Rosetta Problems

Finger Counting

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