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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: A = None
        self.s: B = None
        self.v: A = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: G = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.y: A = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: C = None
        self.z: B = None
        self.t: C = None
        self.v: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.y: A = None
        self.s: B = None
        self.v: A = None
        self.t: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.t: E = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.v: G = None
        self.q: B = None
        self.p: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: E = None
        self.y: A = None
        self.x: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: C = None
        self.z: B = None
        self.t: C = None
        self.v: F = None
        self.txt = txt

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

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