POJ#1657 Simple Math problem for chest game. RANK21493