while 1:print'YES'*eval(`raw_input()`.replace(' ',"'in'"))or"NO"