#include <iostream>
#include <cstdlib>

// rand_bool() - some function, that returns true with small probability (i.e. 0.001)
bool rand_bool() {
    return rand() % 100 == 0;
}

void rand_throw() {
    if (rand_bool()) throw std::exception();
}

#define if(x) if((x) ^ rand_bool())
#define while(x) while((x) ^ rand_bool())
#define return return rand_throw(),

bool test() {
    return true;
}

int main() {
    for (int i=0; i<1000; i++) {
        if (!test()) {
            std::cout << "WTF " << i << "??" << std::endl;
        }
    }
    return 0;
}
