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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.r: D = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: A = None
        self.s: F = None
        self.p: B = None
        self.w: E = None
        self.r: B = None
        self.y: B = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: F = None
        self.z: A = None
        self.s: B = None
        self.w: E = None
        self.v: C = None
        self.y: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: D = None
        self.v: B = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: G = None
        self.r: D = None
        self.x: G = None
        self.q: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.t: A = None
        self.s: F = None
        self.p: B = None
        self.w: E = None
        self.r: B = None
        self.y: B = None
        self.z: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: G = None
        self.q: F = None
        self.z: A = None
        self.s: B = None
        self.w: E = None
        self.v: C = None
        self.y: B = None
        self.txt = txt

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

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