10429

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