CodeLab Academy 📞 9936 6696
← List Python · Level 7: Lists Code · 70 points ← #623 #625 →

#624. Position of x

You are given a list and then x. Print the position (starting from 1) where x appears first. If x is not in the list, print -1. ### Input The first line has n, the second line has n integers separated by spaces. The third line has x. ### Output A number.

Examples

Input
6
4 5 0 4 0 9
7
Output
-1
Input
5
3 2 9 8 6
7
Output
-1

💡 You can solve it with Python, JavaScript or blocks. Read the input line by line with input(). Don't print a question (like input("Number: ")). Print exactly what the output asks for, nothing more.

🔒 You can solve the first 3 problems without an account. Sign up for free to solve this one!