Solve AOJ2100
Solve AOJ1500