import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    } main {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.nextLine(); s scan.nextLine() scan.nextLine scan String[] str = s.split(" "); str s.split(" ") s.split s " " for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        } int i = 0; int i = 0; i 0 i < str.length i str.length str str.length i++ i++ i {
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        } {
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        } if(str[i].equals("0")){
                System.out.println(i + 1);
            } str[i].equals("0") str[i].equals str[i] str 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) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        
        String[] str = s.split(" ");
        
        for(int i = 0; i < str.length; i++){
            if(str[i].equals("0")){
                System.out.println(i + 1);
            }
        }
    }
}