class A:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: B = None
        self.y: G = None
        self.u: D = None
        self.w: H = None
        self.p: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: B = None
        self.r: F = None
        self.w: G = None
        self.p: J = None
        self.u: G = None
        self.s: B = None
        self.q: I = None
        self.t: C = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: J = None
        self.r: A = None
        self.t: H = None
        self.s: A = None
        self.o: C = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.z: F = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: B = None
        self.r: F = None
        self.w: G = None
        self.p: J = None
        self.u: G = None
        self.s: B = None
        self.q: I = None
        self.t: C = None
        self.x: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: J = None
        self.r: A = None
        self.t: H = None
        self.s: A = None
        self.o: C = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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