list = (1..gets.chomp.to_i).map{|i|i % 6 + 1} list = 1..6.map{|i| list.select{|j| j == i}.size } puts list.sum / 6 == list.first ? "Yes" : "No"