4 lines
179 B
Python
4 lines
179 B
Python
|
inp = input().strip()
|
||
|
print(next(i + 4 for i in range(len(inp)) if len(set(inp[i : i + 4])) == 4))
|
||
|
print(next(i + 14 for i in range(len(inp)) if len(set(inp[i : i + 14])) == 14))
|