n,p=input().split();print('!='[n=='1'or p=='0':])