class A:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: F = None
        self.o: E = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.t: C = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: F = None
        self.q: C = None
        self.r: E = None
        self.z: J = None
        self.w: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: J = None
        self.p: D = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: J = None
        self.o: G = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.s: I = None
        self.t: C = None
        self.p: G = None
        self.o: A = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: F = None
        self.q: C = None
        self.r: E = None
        self.z: J = None
        self.w: J = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.w: J = None
        self.p: D = None
        self.v: I = None
        self.z: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.q: J = None
        self.u: J = None
        self.o: G = None
        self.y: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: I = None
        self.r: C = None
        self.txt = txt

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

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