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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.v: I = None
        self.u: A = None
        self.r: H = None
        self.t: B = None
        self.w: J = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.w: D = None
        self.z: C = None
        self.p: G = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: E = None
        self.t: A = None
        self.o: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: I = None
        self.u: J = None
        self.o: F = None
        self.v: D = None
        self.t: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: D = None
        self.z: E = None
        self.t: E = None
        self.v: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.q: A = None
        self.v: I = None
        self.u: A = None
        self.r: H = None
        self.t: B = None
        self.w: J = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.y: F = None
        self.w: D = None
        self.z: C = None
        self.p: G = None
        self.t: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: E = None
        self.t: A = None
        self.o: B = None
        self.u: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.r: I = None
        self.u: J = None
        self.o: F = None
        self.v: D = None
        self.t: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: D = None
        self.z: E = None
        self.t: E = None
        self.v: A = None
        self.txt = txt

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

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