class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.q: A = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: B = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: G = None
        self.z: E = None
        self.q: A = None
        self.p: A = None
        self.u: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.s: B = None
        self.p: D = None
        self.o: D = None
        self.txt = txt

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

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

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