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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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