2662

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