POJ#1969 simple math rank17845