class A:
    def __init__(self, txt: str):
        self.x: C = None
        self.z: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: H = None
        self.z: B = None
        self.x: J = None
        self.p: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: D = None
        self.o: J = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: I = None
        self.o: J = None
        self.y: I = None
        self.t: E = None
        self.s: J = None
        self.u: H = None
        self.w: J = None
        self.q: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.x: G = None
        self.u: F = None
        self.w: H = None
        self.r: F = None
        self.o: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.y: H = None
        self.z: B = None
        self.x: J = None
        self.p: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: D = None
        self.o: J = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: I = None
        self.o: J = None
        self.y: I = None
        self.t: E = None
        self.s: J = None
        self.u: H = None
        self.w: J = None
        self.q: I = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: J = None
        self.x: G = None
        self.u: F = None
        self.w: H = None
        self.r: F = None
        self.o: D = None
        self.txt = txt

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

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

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