Input: We all thought him was unhappy
Output: 0