8902

http://www.acmicpc.net/problem/8902