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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: C = None
        self.s: C = None
        self.t: E = None
        self.o: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: E = None
        self.o: A = None
        self.r: G = None
        self.q: G = None
        self.s: C = None
        self.w: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: G = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: C = None
        self.s: C = None
        self.t: E = None
        self.o: H = None
        self.v: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: E = None
        self.o: A = None
        self.r: G = None
        self.q: G = None
        self.s: C = None
        self.w: C = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.z: G = None
        self.txt = txt

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

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

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

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

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

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