def digit_count(n)
	cnt = 0
	while(n>0)
		if(n%2 == 1)
			cnt += 1
		end
		n/=2
	end
	cnt
end

_,A,B=gets.chomp.split(' ').map{|n| n.to_i}
ca = digit_count(A)
cb = digit_count(B)
if(ca%2 != cb%2)
	puts "Yes"
else
	puts "No"
end
