Input: John not could leave the town.
Output: 0