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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: H = None
        self.r: D = None
        self.x: G = None
        self.z: G = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: F = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: F = None
        self.z: B = None
        self.v: F = None
        self.y: B = None
        self.u: C = None
        self.o: A = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: A = None
        self.u: H = None
        self.r: D = None
        self.x: G = None
        self.z: G = None
        self.y: H = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.w: F = None
        self.s: B = None
        self.y: B = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.x: F = None
        self.z: B = None
        self.v: F = None
        self.y: B = None
        self.u: C = None
        self.o: A = None
        self.w: B = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.txt = txt

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

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