• + 0 comments

    ` import re

    s = input().strip() k = input().strip()

    found = False

    for match in re.finditer(r'(?=('+re.escape(k)+'))', s): found = True start_index = match.start(1) end_index = match.end(1) - 1 print((start_index, end_index))

    if not found: print((-1, -1))

    if not found: print((-1, -1))