Solved 00727.cpp