a = read_line.split.map(&.to_i) if a.any? { |v| v % 2 == 0 } && a.any? { |v| v % 3 == 0 } puts a.sort[1] == 1 ? "No" : "Yes" else puts "No" end