class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: G = None
        self.x: A = None
        self.r: B = None
        self.q: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: A = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: B = None
        self.u: H = None
        self.y: E = None
        self.t: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: G = None
        self.y: A = None
        self.p: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.o: B = None
        self.u: H = None
        self.y: E = None
        self.t: B = None
        self.txt = txt

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

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

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

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