Submit 1051.cpp