import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	}
} Main public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	} main {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	} try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {} catch(Exception e) {} Exception e {} {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String[] ss = br.readLine().split(" "); ss br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			} int i=0; int i=0; i 0 i<ss.length i ss.length ss ss.length i++ i++ i {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			} {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			} if(ss[i].equals("0")) {
					System.out.print(i+1);
				} ss[i].equals("0") ss[i].equals ss[i] ss i "0" {
					System.out.print(i+1);
				} System.out.print(i+1) System.out.print System.out System System.out i+1 i 1 String[] args args public class Main {
	public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	}
} public class Main {
	public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) {
		try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
			String[] ss = br.readLine().split(" ");
			for(int i=0; i<ss.length; i++) {
				if(ss[i].equals("0")) {
					System.out.print(i+1);
				}
			}
		} catch(Exception e) {}
	}
}