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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.w: I = None
        self.v: D = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: A = None
        self.v: A = None
        self.y: B = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: H = None
        self.q: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.z: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: E = None
        self.w: I = None
        self.v: D = None
        self.r: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: A = None
        self.v: A = None
        self.y: B = None
        self.q: E = None
        self.t: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: H = None
        self.q: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: C = None
        self.y: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: C = None
        self.u: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.o: F = None
        self.s: D = None
        self.z: B = None
        self.txt = txt

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

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