class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.p: F = None
        self.w: B = None
        self.r: E = None
        self.t: J = None
        self.u: I = None
        self.x: D = None
        self.z: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.o: A = None
        self.r: H = None
        self.p: B = None
        self.z: E = None
        self.y: G = None
        self.q: H = None
        self.u: H = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: B = None
        self.t: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: A = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: J = None
        self.o: A = None
        self.r: H = None
        self.p: B = None
        self.z: E = None
        self.y: G = None
        self.q: H = None
        self.u: H = None
        self.t: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: C = None
        self.p: B = None
        self.t: D = None
        self.txt = txt

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

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