class A:
    def __init__(self, txt: str):
        self.u: F = None
        self.o: F = None
        self.t: B = None
        self.z: B = None
        self.s: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: F = None
        self.v: G = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: B = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: D = None
        self.o: C = None
        self.u: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: D = None
        self.v: C = None
        self.p: F = None
        self.r: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: F = None
        self.v: G = None
        self.q: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: B = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: D = None
        self.o: C = None
        self.u: I = None
        self.txt = txt

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

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

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