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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: D = None
        self.y: D = None
        self.x: G = None
        self.t: G = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: B = None
        self.p: B = None
        self.o: A = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: H = None
        self.r: A = None
        self.o: E = None
        self.x: H = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: A = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: D = None
        self.y: D = None
        self.x: G = None
        self.t: G = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: B = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: B = None
        self.x: B = None
        self.p: B = None
        self.o: A = None
        self.q: F = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.y: H = None
        self.r: A = None
        self.o: E = None
        self.x: H = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: B = None
        self.r: A = None
        self.u: C = None
        self.txt = txt

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

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