#define Z 2
int f(int b){return ++b%Z;}