import java.util.*;
public class Main
{
	public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
}
} import java.util.*; util.* java public class Main
{
	public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
}
} Main public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
} main {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int arr[] = new int[5]; arr new int[5] 5 for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
} int i=0; int i=0; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
arr[i] = sc.nextInt();
} {
arr[i] = sc.nextInt();
} arr[i] = sc.nextInt() arr[i] arr i sc.nextInt() sc.nextInt sc for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
} int i=0; int i=0; i 0 i<arr.length i arr.length arr arr.length i++ i++ i {
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
} {
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
} if(arr[i] == 0){
System.out.print(i+1);
} arr[i] == 0 arr[i] arr 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) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
}
} public class Main
{
	public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
}
} Main
import java.util.*;
public class Main
{
	public static void main(String[] args) {
	Scanner sc=new Scanner(System.in);
int arr[] = new int[5];
for(int i=0; i<arr.length; i++){
arr[i] = sc.nextInt();
}
for(int i=0; i<arr.length; i++){
if(arr[i] == 0){
System.out.print(i+1);
}
//System.out.println();
}
}
}