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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.t: D = None
        self.u: I = None
        self.x: J = None
        self.q: I = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: C = None
        self.p: E = None
        self.z: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: I = None
        self.p: B = None
        self.y: D = None
        self.u: A = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: H = None
        self.u: B = None
        self.o: D = None
        self.y: H = None
        self.w: F = None
        self.r: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: A = None
        self.t: D = None
        self.u: I = None
        self.x: J = None
        self.q: I = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: C = None
        self.p: E = None
        self.z: J = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: I = None
        self.p: B = None
        self.y: D = None
        self.u: A = None
        self.w: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.p: H = None
        self.u: B = None
        self.o: D = None
        self.y: H = None
        self.w: F = None
        self.r: H = None
        self.txt = txt

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

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