class A:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: H = None
        self.z: C = None
        self.s: H = None
        self.q: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: E = None
        self.p: F = None
        self.r: B = None
        self.t: A = None
        self.u: F = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.v: C = None
        self.o: B = None
        self.u: D = None
        self.s: F = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.r: F = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: D = None
        self.p: C = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: E = None
        self.p: F = None
        self.r: B = None
        self.t: A = None
        self.u: F = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: E = None
        self.v: C = None
        self.o: B = None
        self.u: D = None
        self.s: F = None
        self.r: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.u: B = None
        self.r: F = None
        self.o: B = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: A = None
        self.s: D = None
        self.p: C = None
        self.txt = txt

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

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