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

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.q: D = None
        self.r: A = None
        self.t: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: C = None
        self.t: G = None
        self.o: E = None
        self.w: C = None
        self.x: B = None
        self.s: C = None
        self.p: D = None
        self.txt = txt

a = A("a")
g = B("g")
l = C("l")
j = D("j")
h = E("h")
d = F("d")
e = G("e")
m = H("m")
k = B("k")

a.w = j
a.q = l
g.u = e
g.v = j
g.q = j
g.r = a
g.t = a
g.s = h
l.x = g
j.w = m
j.r = h
j.u = h
j.y = e
j.z = e
j.v = e
j.x = a
j.p = d
h.t = j
h.w = j
h.y = l
h.z = e
h.u = a
d.q = m
d.s = k
e.u = m
e.s = l
e.y = j
m.y = g
m.x = g
m.q = l
m.w = l
m.s = l
m.t = e
m.o = h
m.p = j
k.u = e
k.v = j
k.q = j
k.r = a
k.t = a
k.s = h
assert e.y.u.z.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.q: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: G = None
        self.v: D = None
        self.q: D = None
        self.r: A = None
        self.t: A = None
        self.s: E = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.q: C = None
        self.t: G = None
        self.o: E = None
        self.w: C = None
        self.x: B = None
        self.s: C = None
        self.p: D = None
        self.txt = txt

a = A("a")
g = B("g")
l = C("l")
j = D("j")
h = E("h")
d = F("d")
e = G("e")
m = H("m")
k = B("k")

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