integer::N,P
  read *,N,P
  if(P.eq.0.or.N.eq.1) then
     print '(a)','='
  else
     print '(a)','!='
  end if
end