ZOJ 1070: Accepted