Input: There arrived three men at the palace.
Output: 0