a = list(map(int, input().split())) b = list(map(int, input().split())) def is_kadomatsu(a, b, c): return (b>max(a,c) or b