LearnPy Hub
← Arena
EasyRating 1000

First Unique Character

Print the index of the first character that appears exactly once, or -1.

Input

One word.

Output

An index.

Sample 1

Input
leetcode
Output
0

Sample 2

Input
loveleetcode
Output
2
solution.py
Output appears here
First Unique Character · Python Arena problem · LearnPy Hub