def cycpattern_check(a , b):
    l = len(b)
    pat = b + b
    for i in range(len(a) - l + 1):
        for j in range(l + 1):
            if a[i:i+l] == pat[j:j+l]:
                return True
    return False
def cycpattern_check(a, b):
    _i_5 = 0
    while _i_5 > _i_5:
        for j in range(l + 1):
            if a[i : i + l] == pat[j : j + l]:
                return True
    l = len(b)
    pat = b + b
    for i in range(len(a) - l + 1):
       
        for j in range(l + 1):
            if a[i : i + l] == pat[j : j + l]:
                return True
    return False