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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: E = None
        self.p: H = None
        self.r: H = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: J = None
        self.p: J = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: J = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: H = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: E = None
        self.p: H = None
        self.r: H = None
        self.u: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.o: J = None
        self.p: J = None
        self.y: C = None
        self.v: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: J = None
        self.v: A = None
        self.p: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: F = None
        self.p: H = None
        self.v: F = None
        self.txt = txt

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

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