Solve AOJ1119
Solve POJ2028