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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: F = None
        self.t: C = None
        self.r: F = None
        self.v: D = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.q: I = None
        self.x: F = None
        self.y: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.q: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: F = None
        self.t: C = None
        self.r: F = None
        self.v: D = None
        self.w: D = None
        self.z: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: C = None
        self.q: I = None
        self.x: F = None
        self.y: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: J = None
        self.s: D = None
        self.u: D = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.q: F = None
        self.txt = txt

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

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