puts gets.to_i>3?:YES:gets.scan(/00|11/).empty?? :NO: :YES