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

Untitled