class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: H = None
        self.y: C = None
        self.p: B = None
        self.z: C = None
        self.o: C = None
        self.u: D = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: H = None
        self.s: D = None
        self.t: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.y: C = None
        self.v: G = None
        self.r: F = None
        self.p: F = None
        self.q: F = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.y: D = None
        self.u: A = None
        self.o: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

i = A("i")
k = B("k")
j = C("j")
e = D("e")
n = E("n")
b = F("b")
f = G("f")
a = H("a")

i.t = k
i.p = k
i.w = a
i.y = j
i.z = j
i.o = j
i.x = j
i.u = e
k.z = e
k.v = e
j.z = e
j.s = e
j.w = e
j.u = a
j.t = a
e.s = b
n.s = j
n.y = j
n.z = f
n.v = f
n.r = b
n.p = b
n.q = b
n.u = k
b.x = j
b.z = f
b.y = e
b.u = i
b.o = n
b.q = k
f.y = e
f.z = j
a.s = b
assert f.y.s.q.v.s.o.z.txt == "
class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.w: H = None
        self.y: C = None
        self.p: B = None
        self.z: C = None
        self.o: C = None
        self.u: D = None
        self.x: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: H = None
        self.s: D = None
        self.t: H = None
        self.w: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: C = None
        self.z: G = None
        self.y: C = None
        self.v: G = None
        self.r: F = None
        self.p: F = None
        self.q: F = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: G = None
        self.y: D = None
        self.u: A = None
        self.o: E = None
        self.q: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.z: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

i = A("i")
k = B("k")
j = C("j")
e = D("e")
n = E("n")
b = F("b")
f = G("f")
a = H("a")

i.t = k
i.p = k
i.w = a
i.y = j
i.z = j
i.o = j
i.x = j
i.u = e
k.z = e
k.v = e
j.z = e
j.s = e
j.w = e
j.u = a
j.t = a
e.s = b
n.s = j
n.y = j
n.z = f
n.v = f
n.r = b
n.p = b
n.q = b
n.u = k
b.x = j
b.z = f
b.y = e
b.u = i
b.o = n
b.q = k
f.y = e
f.z = j
a.s = b
assert f.y.s.q.v.s.o.z.txt == "f"