odd(Y):- Y is mod(Y,2).
comp(X):- 1 is odd(X).