class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: E = None
        self.x: F = None
        self.t: G = None
        self.q: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: G = None
        self.t: A = None
        self.w: C = None
        self.p: C = None
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

d = A("d")
c = B("c")
n = C("n")
j = D("j")
g = E("g")
e = F("e")
i = G("i")
a = H("a")
f = A("f")
b = C("b")

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

class B:
    def __init__(self, txt: str):
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.z: G = None
        self.t: A = None
        self.w: C = None
        self.p: C = None
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.u: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: A = None
        self.p: C = None
        self.o: G = None
        self.txt = txt

d = A("d")
c = B("c")
n = C("n")
j = D("j")
g = E("g")
e = F("e")
i = G("i")
a = H("a")
f = A("f")
b = C("b")

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