solved POJ2956