Solved 10986.cpp