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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: J = None
        self.z: B = None
        self.v: C = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: I = None
        self.s: D = None
        self.u: C = None
        self.z: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.y: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.o: J = None
        self.z: B = None
        self.v: C = None
        self.r: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.p: F = None
        self.o: I = None
        self.s: D = None
        self.u: C = None
        self.z: D = None
        self.r: A = None
        self.txt = txt

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

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

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

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