import java.util.*;
public class task4_3{
public static void main(String[] args) {
int i = 0;
int j = 0;
int[][] A = {{0,0,0,0},{1,1,1,1},{1,1,5,6}};
int countOne = 0;
boolean found = false;
for (i=0; i < A.length; i++){
if ( A[i][0] == 1 ){
for (j = 0 ; j < A[i].length ; j++) {
if ( A[i][j] == 1 ) {
countOne ++;
}
}
if ( countOne == A[i].length ) {
System.out.println ( "Yes") ;
found = true;
break ;
}
countOne = 0;
}
}
if (!found) {
System.out.println ("No");
}
System.out.print(countOne);
}
}