2533

https://www.acmicpc.net/problem/2533/