a, b = read_line.split.map(&.to_i) puts a == b || Set{a, b} == Set{2, 4} ? "Yes" : "No"