5904

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