class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.s: C = None
        self.w: E = None
        self.p: F = None
        self.t: D = None
        self.u: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: H = None
        self.x: H = None
        self.r: F = None
        self.t: B = None
        self.q: F = None
        self.y: G = None
        self.u: H = 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.t: A = None
        self.o: C = None
        self.v: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.u: D = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: H = None
        self.x: H = None
        self.r: F = None
        self.t: B = None
        self.q: F = None
        self.y: G = None
        self.u: H = 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.t: A = None
        self.o: C = None
        self.v: C = None
        self.txt = txt

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

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

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

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