Vsevolod's submission of How many sequences | CodeChef