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