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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: G = None
        self.t: H = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: J = None
        self.s: J = None
        self.v: C = None
        self.y: H = None
        self.u: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: G = None
        self.q: D = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.s: G = None
        self.y: F = None
        self.x: J = None
        self.p: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.q: G = None
        self.t: H = None
        self.y: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.z: J = None
        self.s: J = None
        self.v: C = None
        self.y: H = None
        self.u: I = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: G = None
        self.q: D = None
        self.z: E = None
        self.u: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: B = None
        self.s: G = None
        self.y: F = None
        self.x: J = None
        self.p: C = None
        self.t: E = None
        self.txt = txt

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

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

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