CodeLab Academy 📞 9936 6696
← List Python · Level 6: Strings Code · 60 points ← #534 #536 →

#535. Position of a character

The first line has a text, the second line has one character. Print the index (starting from 0) where the character appears for the first time. If it is not there, print -1. ### Input Two lines. ### Output A number.

Examples

Input
music
z
Output
-1
Input
game
a
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!