ticket 1210 solve