class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.o: D = None
        self.z: H = None
        self.v: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: F = None
        self.p: C = None
        self.t: F = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: F = None
        self.q: B = None
        self.u: E = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: B = None
        self.y: G = None
        self.r: C = None
        self.v: G = None
        self.x: C = None
        self.u: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.t: E = None
        self.w: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: F = None
        self.p: C = None
        self.t: F = None
        self.s: B = None
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.z: F = None
        self.q: B = None
        self.u: E = None
        self.t: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: G = None
        self.s: B = None
        self.y: G = None
        self.r: C = None
        self.v: G = None
        self.x: C = None
        self.u: B = None
        self.txt = txt

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

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