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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.o: F = None
        self.x: A = None
        self.r: D = None
        self.p: F = None
        self.z: H = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: E = None
        self.o: B = None
        self.q: G = None
        self.v: A = None
        self.y: F = None
        self.x: A = None
        self.u: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: G = None
        self.t: H = None
        self.x: G = None
        self.u: E = None
        self.o: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: A = None
        self.q: B = None
        self.x: H = None
        self.v: G = None
        self.t: F = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.w: G = None
        self.o: F = None
        self.x: A = None
        self.r: D = None
        self.p: F = None
        self.z: H = None
        self.q: B = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.t: E = None
        self.o: B = None
        self.q: G = None
        self.v: A = None
        self.y: F = None
        self.x: A = None
        self.u: E = None
        self.w: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: I = None
        self.w: G = None
        self.t: H = None
        self.x: G = None
        self.u: E = None
        self.o: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: A = None
        self.q: B = None
        self.x: H = None
        self.v: G = None
        self.t: F = None
        self.r: A = None
        self.y: C = None
        self.txt = txt

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

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