Hubo-Ach simple demon in C++