def fizz_buzz(n: int):
    ns = []
    for i in range(n):
        if i % 11 == 0 or i % 13 == 0:
            ns.append(i)
    s = ''.join(list(map(str, ns)))
    ans = 0
    for c in s:
        ans += (c == '7')
    return ans
def fizz_buzz(n: int):
    ns = []
    for VAR_0 in range(n):
        if VAR_0 % 11 == 0 or VAR_0 % 13 == 0:
            ns.append(VAR_0)
           
    s = "".join(list(map(str, ns)))
    ans = 0
    for c in s:
        ans += c == "7"
    return ans