class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.p: C = None
        self.v: B = None
        self.o: E = None
        self.txt = txt

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

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

i = A("i")
n = B("n")
j = C("j")
l = D("l")
c = E("c")
b = F("b")
g = G("g")
f = H("f")
e = E("e")
d = C("d")

i.z = e
i.u = n
i.p = g
n.o = l
n.p = d
n.u = f
j.z = c
j.q = e
j.u = f
l.o = g
c.z = e
c.w = e
c.o = f
c.u = f
c.y = l
c.t = l
c.p = n
b.u = g
b.w = j
b.p = d
b.v = n
b.o = c
g.q = j
g.u = d
f.q = n
f.o = n
f.z = b
f.w = g
f.u = g
f.t = c
f.y = d
f.x = j
e.z = c
e.w = c
e.o = f
e.u = f
e.y = l
e.t = l
e.p = n
d.z = c
d.q = c
d.u = f
assert n.p.u.y.q.w.u.u.q.txt == "
class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: E = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: C = None
        self.p: C = None
        self.v: B = None
        self.o: E = None
        self.txt = txt

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

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

i = A("i")
n = B("n")
j = C("j")
l = D("l")
c = E("c")
b = F("b")
g = G("g")
f = H("f")
e = E("e")
d = C("d")

i.z = e
i.u = n
i.p = g
n.o = l
n.p = d
n.u = f
j.z = c
j.q = e
j.u = f
l.o = g
c.z = e
c.w = e
c.o = f
c.u = f
c.y = l
c.t = l
c.p = n
b.u = g
b.w = j
b.p = d
b.v = n
b.o = c
g.q = j
g.u = d
f.q = n
f.o = n
f.z = b
f.w = g
f.u = g
f.t = c
f.y = d
f.x = j
e.z = c
e.w = c
e.o = f
e.u = f
e.y = l
e.t = l
e.p = n
d.z = c
d.q = c
d.u = f
assert n.p.u.y.q.w.u.u.q.txt == "j"