Practice Contests: Problem A. Old Magician