Andrey's submission of Sereja and GCD | CodeChef