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

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

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

i = A("i")
m = B("m")
a = C("a")
g = D("g")
l = E("l")
k = F("k")
h = G("h")
f = H("f")
j = I("j")
e = J("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: G = None
        self.w: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

i = A("i")
m = B("m")
a = C("a")
g = D("g")
l = E("l")
k = F("k")
h = G("h")
f = H("f")
j = I("j")
e = J("e")

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