프롬프트 없음
4 5 3 1 2 4 M 3 4 S 1 3 P 2 3 1 M 3 4 S 1 3
2 6 3 8
출처: USACO 2015 December Contest, Platinum Problem 3. Counting Haybales