Rosetta Problems

Billion Million Thousand

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