import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		
		
		

		Scanner scanner = new Scanner(System.in);
		String[] ar = scanner.nextLine().split(" ");
		
		

		for(int i=0; i<ar.length; i++) {
			if (Integer.parseInt(ar[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);
		String[] ar = scanner.nextLine().split(" ");
		
		

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

	} Main public static void main(String[] args) {

		
		
		

		Scanner scanner = new Scanner(System.in);
		String[] ar = scanner.nextLine().split(" ");
		
		

		for(int i=0; i<ar.length; i++) {
			if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			}
		}	} main {

		
		
		

		Scanner scanner = new Scanner(System.in);
		String[] ar = scanner.nextLine().split(" ");
		
		

		for(int i=0; i<ar.length; i++) {
			if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			}
		}	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] ar = scanner.nextLine().split(" "); ar scanner.nextLine().split(" ") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner " " for(int i=0; i<ar.length; i++) {
			if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			}
		} int i=0; int i=0; i 0 i<ar.length i ar.length ar ar.length i++ i++ i {
			if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			}
		} {
			if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			}
		} if (Integer.parseInt(ar[i]) == 0) {
				System.out.println(i+1);
			} Integer.parseInt(ar[i]) == 0 Integer.parseInt(ar[i]) Integer.parseInt Integer ar[i] ar 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);
		String[] ar = scanner.nextLine().split(" ");
		
		

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

	} public class Main {

	public static void main(String[] args) {

		
		
		

		Scanner scanner = new Scanner(System.in);
		String[] ar = scanner.nextLine().split(" ");
		
		

		for(int i=0; i<ar.length; i++) {
			if (Integer.parseInt(ar[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);
		String[] ar = scanner.nextLine().split(" ");
		
		

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

	}