

import java.util.Scanner;

public class Main {

    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    }
    
} import java.util.Scanner; Scanner java.util public class Main {

    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    }
    
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    } main {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int [] nums = new int[5]; nums new int[5] 5 for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               } int i = 0 ; int i = 0 ; i 0 i< 5 i 5 i++ i++ i {
        
        nums[i] = scanner.nextInt();
               } {
        
        nums[i] = scanner.nextInt();
               } nums[i] = scanner.nextInt() nums[i] nums i scanner.nextInt() scanner.nextInt scanner for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         } int i = 0 ; int i = 0 ; i 0 i< 5 i 5 i++ i++ i {
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         } {
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         } if(nums[i] == 0){
             System.out.println(i+1);
         } nums[i] == 0 nums[i] nums i 0 {
             System.out.println(i+1);
         } System.out.println(i+1) System.out.println System.out System System.out i+1 i 1 String[] args args public class Main {

    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    }
    
} public class Main {

    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    }
    
} Main


import java.util.Scanner;

public class Main {

    
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int [] nums = new int[5];
        for(int i = 0 ; i< 5;i++){
        
        nums[i] = scanner.nextInt();
               }
        
         for(int i = 0 ; i< 5;i++){
         if(nums[i] == 0){
             System.out.println(i+1);
         }
         
         
         
         }
        
        
        
    }
    
}
