Marcin's submission of Curious Queries | CodeChef