int x = 1; for( int i = 0; i < arg; i++ ) x = 2 - x; return x;