import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner koko = new Scanner(System.in); int n = koko.nextInt(); int[] v = new int[n]; int total=0; for(int i=0; i0; i--){ for(int j=0; j<2; j++){ if(sushi[n][j][i]){ System.out.println(i); break loop1; } } } } }