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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: I = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.x: G = None
        self.z: F = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: H = None
        self.q: E = None
        self.s: E = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.t: G = None
        self.w: I = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: I = None
        self.z: I = None
        self.u: D = None
        self.o: C = None
        self.v: A = None
        self.x: A = None
        self.p: I = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: A = None
        self.x: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.y: A = None
        self.s: E = None
        self.u: H = None
        self.r: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.t: I = None
        self.x: F = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: E = None
        self.r: G = None
        self.x: G = None
        self.z: F = None
        self.p: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: H = None
        self.q: E = None
        self.s: E = None
        self.o: A = None
        self.u: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: G = None
        self.u: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: E = None
        self.t: G = None
        self.w: I = None
        self.r: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.s: I = None
        self.z: I = None
        self.u: D = None
        self.o: C = None
        self.v: A = None
        self.x: A = None
        self.p: I = None
        self.w: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.q: A = None
        self.x: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: G = None
        self.t: B = None
        self.y: A = None
        self.s: E = None
        self.u: H = None
        self.r: D = None
        self.txt = txt

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

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