class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.p: E = None
        self.t: C = None
        self.v: B = None
        self.u: A = None
        self.x: B = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: B = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: F = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.p: E = None
        self.t: C = None
        self.v: B = None
        self.u: A = None
        self.x: B = None
        self.z: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.r: B = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

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

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

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