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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: C = None
        self.r: G = None
        self.z: A = None
        self.s: F = None
        self.x: F = None
        self.v: F = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: E = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: C = None
        self.r: G = None
        self.z: A = None
        self.s: F = None
        self.x: F = None
        self.v: F = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: E = None
        self.z: H = None
        self.txt = txt

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

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

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

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

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

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

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