Ivan's submission of Weird Product | CodeChef