2016 SCU ACM ѡһ

G: easyproblem 1