class A:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: C = None
        self.x: G = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.z: G = None
        self.u: I = None
        self.y: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: C = None
        self.w: F = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.s: C = None
        self.w: A = None
        self.v: C = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.o: F = None
        self.q: H = None
        self.z: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: C = None
        self.z: G = None
        self.u: I = None
        self.y: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: H = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.x: C = None
        self.w: F = None
        self.t: D = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.s: C = None
        self.w: A = None
        self.v: C = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.s: D = None
        self.o: F = None
        self.q: H = None
        self.z: G = None
        self.txt = txt

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

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