class A:
    def __init__(self, txt: str):
        self.x: J = None
        self.r: H = None
        self.u: G = None
        self.w: H = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: F = None
        self.x: I = None
        self.v: E = None
        self.t: E = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: E = None
        self.x: G = None
        self.w: H = None
        self.t: J = None
        self.r: J = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: J = None
        self.u: J = None
        self.x: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: F = None
        self.x: I = None
        self.v: E = None
        self.t: E = None
        self.z: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.s: E = None
        self.x: G = None
        self.w: H = None
        self.t: J = None
        self.r: J = None
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.r: J = None
        self.u: J = None
        self.x: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: D = None
        self.u: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

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

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