Simple C++ solution for 33