class A:
    def __init__(self, txt: str):
        self.o: E = None
        self.u: G = None
        self.x: D = None
        self.t: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: B = None
        self.t: B = None
        self.v: B = None
        self.s: G = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: B = None
        self.t: B = None
        self.v: B = None
        self.s: G = None
        self.u: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

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

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

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

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