[C++] [SPOJ] Problem Colltaza