Solution for Aizu Online Judge