def mot3(s):
    for i in range(len(s)-2):
        if s[i] == s[i+1] == s[i+2]:
            return i
    return -1
