Madhav Jha's submission of pattern26 | CodeChef