ac 1852.cpp