program :- get_char(X),get_char(Y),check(X,Y). 