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