class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.x: F = None
        self.q: I = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.u: J = None
        self.r: I = None
        self.s: A = None
        self.y: G = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.r: I = None
        self.z: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: C = None
        self.v: A = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: A = None
        self.p: A = None
        self.x: F = None
        self.q: I = None
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: A = None
        self.x: A = None
        self.u: J = None
        self.r: I = None
        self.s: A = None
        self.y: G = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.r: I = None
        self.z: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: C = None
        self.v: A = None
        self.y: C = None
        self.txt = txt

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

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