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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.z: C = None
        self.t: F = None
        self.u: G = None
        self.r: E = None
        self.v: F = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: G = None
        self.r: H = None
        self.v: D = None
        self.q: D = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: H = None
        self.w: C = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: F = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

e = A("e")
k = B("k")
c = C("c")
g = D("g")
b = E("b")
m = F("m")
n = G("n")
j = H("j")
i = G("i")

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

class B:
    def __init__(self, txt: str):
        self.q: H = None
        self.x: D = None
        self.z: C = None
        self.t: F = None
        self.u: G = None
        self.r: E = None
        self.v: F = None
        self.p: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.x: C = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.u: G = None
        self.r: H = None
        self.v: D = None
        self.q: D = None
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: H = None
        self.w: C = None
        self.t: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: F = None
        self.q: C = None
        self.t: F = None
        self.txt = txt

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

e = A("e")
k = B("k")
c = C("c")
g = D("g")
b = E("b")
m = F("m")
n = G("n")
j = H("j")
i = G("i")

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