class A:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: I = None
        self.w: C = None
        self.t: I = None
        self.x: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: G = None
        self.x: G = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: D = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: E = None
        self.u: C = None
        self.x: C = None
        self.z: A = None
        self.q: C = None
        self.r: I = None
        self.v: C = None
        self.t: C = None
        self.txt = txt

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

h = A("h")
j = B("j")
b = C("b")
n = D("n")
a = E("a")
m = F("m")
l = G("l")
d = H("d")
e = I("e")

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.x: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.p: B = None
        self.r: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: G = None
        self.x: G = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.s: D = None
        self.r: I = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.w: E = None
        self.u: C = None
        self.x: C = None
        self.z: A = None
        self.q: C = None
        self.r: I = None
        self.v: C = None
        self.t: C = None
        self.txt = txt

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

h = A("h")
j = B("j")
b = C("b")
n = D("n")
a = E("a")
m = F("m")
l = G("l")
d = H("d")
e = I("e")

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