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