Input: John referred from the building.
Output: 0