_Sam's submission of Dividing Machine | CodeChef