class A:
    def __init__(self, txt: str):
        self.q: H = None
        self.o: D = None
        self.w: C = None
        self.t: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: B = None
        self.p: C = None
        self.z: F = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: F = None
        self.y: D = None
        self.q: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: H = None
        self.s: B = None
        self.p: C = None
        self.z: F = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.y: D = None
        self.txt = txt

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

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

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