import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int q = in.nextInt(); //char[] ch=s1.toCharArray(); //for(int i=0;i=1 && array[1]>=2 && array[2]>=1 && array[3]>=2 && array[4]>=1 && array[5]>=2 && array[6]>=1 ) System.out.println("YES"); else System.out.println("NO"); } } }