awesome code at maxdepth2.cpp