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