Solve AOJ1276
Solve AOJ2424