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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.u: I = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: G = None
        self.p: E = None
        self.w: H = None
        self.z: C = None
        self.y: B = None
        self.o: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: J = None
        self.r: E = None
        self.t: J = None
        self.o: J = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: A = None
        self.o: D = None
        self.p: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: I = None
        self.u: I = None
        self.p: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: G = None
        self.p: E = None
        self.w: H = None
        self.z: C = None
        self.y: B = None
        self.o: A = None
        self.v: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: J = None
        self.r: E = None
        self.t: J = None
        self.o: J = None
        self.x: H = None
        self.y: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: A = None
        self.v: B = None
        self.txt = txt

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

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