Input: The coat which a girl came in who had worn was torn.
Output: 0