Fix 1093

POJ #1093 now accepted.