B. President's Office 题目连接: http://codeforces.com/contest/6/problem/B Description President of Berland has a very vast office-room, where, apart from him, work his subordinates. Each subordinate, as well as President himself, has his own desk of a un…