import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    } main {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x[] = new int[5]; x new int[5] 5 for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        } int i = 0; int i = 0; i 0 i < x.length i x.length x x.length i++ i++ i {
            x[i] = scan.nextInt();
        } {
            x[i] = scan.nextInt();
        } x[i] = scan.nextInt() x[i] x i scan.nextInt() scan.nextInt scan for(int i = 0; i < x.length; i++) {
            if(x[i] == 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] == 0) {
                System.out.println(i + 1);
            }
        } {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        } if(x[i] == 0) {
                System.out.println(i + 1);
            } x[i] == 0 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 scan.close() scan.close scan String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    }
} Main
import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int x[] = new int[5];

        // Enter x[0] - x[4]
        for(int i = 0; i < x.length; i++) {
            x[i] = scan.nextInt();
        }

        // Output x[i] if its value is 0
        for(int i = 0; i < x.length; i++) {
            if(x[i] == 0) {
                System.out.println(i + 1);
            }
        }

        scan.close();
    }
}