loop do
  break unless STDIN.readline

  parity = [0, 0, 0, 0, 0, 0, 0]

  line = STDIN.readline.chomp

  line.each_char do |c|
    next if c == " "
    parity[c.to_i] ^= 1
  end

  odd_numbers = parity.select { |p| p == 1 }.size

  if [0, 2].include? odd_numbers
    puts "Yes"
  else
    puts "No"
  end
end