Andrey's submission of Friends | CodeChef