class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: H = None
        self.s: I = None
        self.p: H = None
        self.u: G = None
        self.z: G = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: H = None
        self.z: G = None
        self.v: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.q: D = None
        self.s: D = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: B = None
        self.z: E = None
        self.x: I = None
        self.y: D = None
        self.r: I = None
        self.s: E = None
        self.q: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: G = None
        self.r: A = None
        self.u: E = None
        self.z: G = None
        self.t: G = None
        self.x: A = None
        self.v: B = None
        self.txt = txt

a = A("a")
c = B("c")
n = C("n")
h = D("h")
d = E("d")
j = F("j")
i = G("i")
k = H("k")
b = I("b")
g = J("g")

a.y = j
a.z = g
c.t = h
c.v = k
c.p = k
c.s = b
c.u = i
c.z = i
c.x = n
n.q = j
n.p = k
n.z = i
n.y = i
n.v = b
h.y = b
d.o = j
d.w = g
d.u = g
d.p = g
d.x = n
d.v = i
d.r = i
d.y = a
d.z = b
d.s = k
j.o = a
j.r = a
j.t = h
j.q = h
j.s = h
i.w = b
i.x = b
i.r = b
i.u = c
i.q = c
i.z = d
i.s = d
i.y = h
k.z = d
k.y = d
k.o = g
k.w = g
k.u = h
k.p = i
k.r = a
k.q = a
b.r = g
g.p = a
g.r = a
g.x = a
g.o = i
g.z = i
g.t = i
g.u = d
g.v = c
assert a.y.r.z.o.y.txt == "
class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.v: H = None
        self.s: I = None
        self.p: H = None
        self.u: G = None
        self.z: G = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.p: H = None
        self.z: G = None
        self.v: I = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: D = None
        self.q: D = None
        self.s: D = None
        self.r: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: B = None
        self.z: E = None
        self.x: I = None
        self.y: D = None
        self.r: I = None
        self.s: E = None
        self.q: B = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: G = None
        self.r: A = None
        self.u: E = None
        self.z: G = None
        self.t: G = None
        self.x: A = None
        self.v: B = None
        self.txt = txt

a = A("a")
c = B("c")
n = C("n")
h = D("h")
d = E("d")
j = F("j")
i = G("i")
k = H("k")
b = I("b")
g = J("g")

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