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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: J = None
        self.t: H = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: C = None
        self.s: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: D = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: E = None
        self.x: H = None
        self.t: H = None
        self.w: H = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.u: J = None
        self.t: H = None
        self.z: C = None
        self.v: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: C = None
        self.s: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: C = None
        self.s: D = None
        self.q: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: F = None
        self.z: E = None
        self.x: H = None
        self.t: H = None
        self.w: H = None
        self.txt = txt

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

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