class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: D = None
        self.u: F = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: F = None
        self.q: A = None
        self.s: A = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: B = None
        self.p: D = None
        self.v: A = None
        self.z: B = None
        self.t: D = None
        self.txt = txt

f = A("f")
h = B("h")
c = C("c")
d = D("d")
i = E("i")
g = F("g")
n = E("n")
j = A("j")
a = B("a")
e = D("e")

f.x = a
f.s = e
f.u = g
f.q = g
f.z = d
h.o = c
h.q = e
h.u = a
c.v = f
c.w = g
d.z = f
i.z = a
i.w = g
i.q = j
i.s = j
i.p = h
g.o = i
g.s = a
g.z = a
g.p = e
g.t = e
g.v = f
n.z = h
n.p = h
n.w = g
n.q = j
n.s = j
j.x = a
j.s = d
j.u = g
j.q = g
j.z = e
a.o = c
a.q = e
a.u = h
e.z = f
assert c.w.o.w.z.u.txt == "
class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.s: D = None
        self.u: F = None
        self.q: F = None
        self.z: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.q: D = None
        self.u: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: F = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: F = None
        self.q: A = None
        self.s: A = None
        self.p: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: B = None
        self.p: D = None
        self.v: A = None
        self.z: B = None
        self.t: D = None
        self.txt = txt

f = A("f")
h = B("h")
c = C("c")
d = D("d")
i = E("i")
g = F("g")
n = E("n")
j = A("j")
a = B("a")
e = D("e")

f.x = a
f.s = e
f.u = g
f.q = g
f.z = d
h.o = c
h.q = e
h.u = a
c.v = f
c.w = g
d.z = f
i.z = a
i.w = g
i.q = j
i.s = j
i.p = h
g.o = i
g.s = a
g.z = a
g.p = e
g.t = e
g.v = f
n.z = h
n.p = h
n.w = g
n.q = j
n.s = j
j.x = a
j.s = d
j.u = g
j.q = g
j.z = e
a.o = c
a.q = e
a.u = h
e.z = f
assert c.w.o.w.z.u.txt == "h"