# 여기에 코드를 작성해주세요. 아래 주석은 예시입니다.
# a = input()
# print(a)
arr = list(map(int,input().split()))
n = int(input())
if (arr[n - 1]) < 0:
print(-1)
elif (arr[n - 1]) == 0:
print(0)
else:
print(1)
To embed this project on your website, copy the following code and paste it into your website's HTML: