class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: H = None
        self.z: H = None
        self.r: E = None
        self.p: C = None
        self.q: C = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: B = None
        self.x: F = None
        self.y: G = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: C = None
        self.s: C = None
        self.t: B = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: H = None
        self.r: D = None
        self.t: G = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: C = None
        self.t: G = None
        self.s: H = None
        self.p: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: B = None
        self.z: F = None
        self.w: B = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: C = None
        self.q: B = None
        self.s: C = None
        self.x: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: B = None
        self.x: F = None
        self.y: G = None
        self.z: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.z: C = None
        self.s: C = None
        self.t: B = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: H = None
        self.r: D = None
        self.t: G = None
        self.z: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: C = None
        self.t: G = None
        self.s: H = None
        self.p: F = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: E = None
        self.r: B = None
        self.z: F = None
        self.w: B = None
        self.o: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: C = None
        self.q: B = None
        self.s: C = None
        self.x: E = None
        self.txt = txt

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

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