1 3 5 7 9 5
YES
nums = list(map(int, input().split())) target = int(input()) if target in nums: print('YES') else: print('NO')