class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.o: B = None
        self.x: C = None
        self.y: G = None
        self.u: B = None
        self.t: C = None
        self.s: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: C = None
        self.z: H = None
        self.o: J = None
        self.u: A = None
        self.v: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: J = None
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: G = None
        self.p: D = None
        self.o: A = None
        self.v: J = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: H = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: C = None
        self.z: H = None
        self.o: J = None
        self.u: A = None
        self.v: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: J = None
        self.t: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.r: H = None
        self.w: G = None
        self.p: D = None
        self.o: A = None
        self.v: J = None
        self.s: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: H = None
        self.x: D = None
        self.r: A = None
        self.txt = txt

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

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