class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: B = None
        self.s: C = None
        self.t: E = None
        self.q: G = None
        self.x: F = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.r: D = None
        self.o: C = None
        self.q: F = None
        self.s: F = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: D = None
        self.o: B = None
        self.t: B = None
        self.p: F = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.z: B = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

a = A("a")
c = B("c")
m = C("m")
j = D("j")
b = E("b")
h = F("h")
i = G("i")
g = C("g")
l = D("l")

a.u = i
a.q = i
a.z = c
a.s = m
a.v = m
a.t = b
a.x = h
c.o = h
c.x = l
c.z = a
m.x = g
m.o = g
m.t = h
m.q = h
m.s = h
m.r = l
m.v = b
j.z = i
b.x = m
b.z = j
b.o = c
b.t = c
b.p = h
b.y = g
h.v = c
h.t = c
h.w = m
i.t = m
i.u = h
i.z = c
i.y = c
i.r = c
g.x = m
g.o = m
g.t = h
g.q = h
g.s = h
g.r = j
g.v = b
l.z = i
assert l.z.y.x.z.t.o.q.t.o.txt == "
class A:
    def __init__(self, txt: str):
        self.u: G = None
        self.z: B = None
        self.s: C = None
        self.t: E = None
        self.q: G = None
        self.x: F = None
        self.v: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: C = None
        self.t: F = None
        self.r: D = None
        self.o: C = None
        self.q: F = None
        self.s: F = None
        self.v: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: D = None
        self.o: B = None
        self.t: B = None
        self.p: F = None
        self.y: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.z: B = None
        self.y: B = None
        self.r: B = None
        self.txt = txt

a = A("a")
c = B("c")
m = C("m")
j = D("j")
b = E("b")
h = F("h")
i = G("i")
g = C("g")
l = D("l")

a.u = i
a.q = i
a.z = c
a.s = m
a.v = m
a.t = b
a.x = h
c.o = h
c.x = l
c.z = a
m.x = g
m.o = g
m.t = h
m.q = h
m.s = h
m.r = l
m.v = b
j.z = i
b.x = m
b.z = j
b.o = c
b.t = c
b.p = h
b.y = g
h.v = c
h.t = c
h.w = m
i.t = m
i.u = h
i.z = c
i.y = c
i.r = c
g.x = m
g.o = m
g.t = h
g.q = h
g.s = h
g.r = j
g.v = b
l.z = i
assert l.z.y.x.z.t.o.q.t.o.txt == "h"