class A:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: C = None
        self.w: G = None
        self.y: G = None
        self.r: G = None
        self.x: B = None
        self.t: C = None
        self.u: F = None
        self.z: H = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: H = None
        self.x: E = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: G = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: C = None
        self.r: E = None
        self.o: H = None
        self.z: B = None
        self.x: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: H = None
        self.x: E = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: G = None
        self.r: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.w: C = None
        self.r: E = None
        self.o: H = None
        self.z: B = None
        self.x: H = None
        self.txt = txt

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

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

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