class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.q: B = None
        self.p: H = None
        self.w: H = None
        self.s: A = None
        self.r: A = None
        self.z: H = None
        self.y: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: E = None
        self.t: F = None
        self.v: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.q: H = None
        self.r: B = None
        self.p: B = None
        self.u: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: E = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: E = None
        self.t: F = None
        self.v: E = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: C = None
        self.q: H = None
        self.r: B = None
        self.p: B = None
        self.u: F = None
        self.y: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: E = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: H = None
        self.txt = txt

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

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

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