class A:
    def __init__(self, txt: str):
        self.w: F = None
        self.p: G = None
        self.o: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: B = None
        self.x: A = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.x: A = None
        self.u: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: G = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.w: D = None
        self.x: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: B = None
        self.x: A = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: F = None
        self.x: A = None
        self.u: D = None
        self.t: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.o: A = None
        self.q: G = None
        self.s: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.v: D = None
        self.w: D = None
        self.x: A = None
        self.txt = txt

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

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