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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: H = None
        self.p: F = None
        self.s: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: C = None
        self.t: C = None
        self.y: I = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.s: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: H = None
        self.w: H = None
        self.p: F = None
        self.s: A = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: C = None
        self.t: C = None
        self.y: I = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: B = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.s: F = None
        self.txt = txt

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

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