program main

read*,i1,i2,i3,i4,i5

if(i1==0)then
print*,'1'
end if
if(i2==0)then
print*,'2'
end if
if(i3==0)then
print*,'3'
end if
if(i4==0)then
print*,'4'
end if
if(i5==0)then
print*,'5'
end if

end program