xyz111's submission of Fun with AGp | CodeChef