Niyaz Nigmatullin's submission of Friends | CodeChef