In Happy City there are
citizens called
. Each of them is either happy or unhappy at any moment in time. The mood of any citizen
changes (from being unhappy to being happy or vice versa) if and only if some other happy citizen smiles at
. On Monday morning there were
happy citizens in the city.
The following happened on Monday during the day: citizen
smiled at citizen
, then
smiled at
, etc., and, finally,
smiled at
. Nobody smiled at anyone else apart from this. Exactly the same repeated on Tuesday, Wednesday and Thursday. There were exactly
happy citizens on Thursday evening.
Determine the largest possible value of
.





The following happened on Monday during the day: citizen







Determine the largest possible value of
