import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.nio.charset.StandardCharsets; StandardCharsets java.nio.charset public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	}
} Main public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	} main {
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	} InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8); reader new InputStreamReader(System.in, StandardCharsets.UTF_8) BufferedReader in = new BufferedReader(reader); in new BufferedReader(reader) String[] str = in.readLine().split(" "); str in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int size = str.length; size str.length str str.length for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		} int i=0; int i=0; i 0 i < size i size i++ i++ i {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		} {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		} int num = Integer.parseInt(str[i]); num Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i if(num == 0) {
				System.out.println(i+1);
			} num == 0 num 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 IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	}
} public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;

public class Main {
	public static void main (String[] args) throws IOException{
	    InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
	    BufferedReader in = new BufferedReader(reader);
		String[] str = in.readLine().split(" ");
		int size = str.length;

		for(int i=0; i < size; i++) {
			int num = Integer.parseInt(str[i]);
			if(num == 0) {
				System.out.println(i+1);
			}
		}
	}
}