Madhav Jha's submission of pattern15 | CodeChef