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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: H = None
        self.q: H = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: C = None
        self.x: A = None
        self.z: G = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.u: F = None
        self.t: F = None
        self.w: H = None
        self.o: B = None
        self.x: F = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.t: G = None
        self.r: A = None
        self.w: C = None
        self.x: G = None
        self.o: A = None
        self.z: D = None
        self.txt = txt

a = A("a")
n = B("n")
m = C("m")
e = D("e")
c = E("c")
i = F("i")
h = G("h")
k = H("k")
j = F("j")

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: H = None
        self.q: H = None
        self.t: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.y: C = None
        self.x: A = None
        self.z: G = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: C = None
        self.s: H = None
        self.u: F = None
        self.t: F = None
        self.w: H = None
        self.o: B = None
        self.x: F = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.s: C = None
        self.t: G = None
        self.r: A = None
        self.w: C = None
        self.x: G = None
        self.o: A = None
        self.z: D = None
        self.txt = txt

a = A("a")
n = B("n")
m = C("m")
e = D("e")
c = E("c")
i = F("i")
h = G("h")
k = H("k")
j = F("j")

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