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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: F = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: J = None
        self.u: A = None
        self.x: G = None
        self.w: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.q: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: E = None
        self.q: G = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: I = None
        self.r: F = None
        self.p: I = None
        self.t: D = None
        self.x: I = None
        self.s: E = None
        self.v: A = None
        self.y: I = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: F = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: G = None
        self.v: J = None
        self.u: A = None
        self.x: G = None
        self.w: F = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.p: H = None
        self.q: A = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: E = None
        self.q: G = None
        self.s: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: C = None
        self.o: I = None
        self.r: F = None
        self.p: I = None
        self.t: D = None
        self.x: I = None
        self.s: E = None
        self.v: A = None
        self.y: I = None
        self.q: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: A = None
        self.txt = txt

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

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