a = int(input())
S = [10, 7, 11, 5, 13, 8]
n = 6
flag = 0
i = 0
for i in range(n): # range 뒤에는 숫자만 올 수 있고, 그 숫자가 개수임 n들어가면, 0부터 n - 1까지 나옴
if (a == S[i]):
flag = 1 # flag의 역할은 배열 안에 a가 있으면, 1이 되는 것이므로, if문 다음에 와야 함!
print(i + 1)
break
if (flag == 0):
print(0)
To embed this project on your website, copy the following code and paste it into your website's HTML: