import java.util.Scanner;

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

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