import math


def f11(x, y, z):
    return ((y ** 4) / 11 + z ** 5 + 66) / (y ** 7 + math.e ** x) + y ** 7 + 34 * z ** 4 - (
            (math.log(x) - 22 * y ** 5) / (z ** 8 - 59 * y ** 5))


def f12(x):
    if x < 111:
        return 22 * x ** 6 + x ** 5
    elif 11 <= x < 149:
        return (x ** 8 - abs(x)) ** 5 - 41 * x ** 2
    else:
        return x ** 2 - 67 * x ** 5 + 45


def f13(n, m):
    res = float(0)
    for i in range(1, n+1):
        res += 22 * i ** 6 + i ** 5
    res *= 30
    for i in range(1, n+1):
        for j in range(1, m+1):
            res += math.cos(i) - j ** 5 - 10
    return res


#print(f13(45, 99))
#print(f13(45, 100))


def f14(n):
    if n == 0:
        return 4
    else:
        return 1/57 * f14(n-1)**2 - 1/96 * f14(n-1)


#print(f14(4))
#print(f14(6))