POJ 1738 An old stone game