class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.z: A = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: F = None
        self.o: D = None
        self.z: B = None
        self.s: G = None
        self.t: H = None
        self.x: G = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.p: H = None
        self.z: G = None
        self.t: B = None
        self.v: B = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: H = None
        self.v: A = None
        self.o: D = None
        self.r: C = None
        self.p: C = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.t: C = None
        self.o: F = None
        self.q: B = None
        self.w: H = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: F = None
        self.o: D = None
        self.z: B = None
        self.s: G = None
        self.t: H = None
        self.x: G = None
        self.q: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.p: H = None
        self.z: G = None
        self.t: B = None
        self.v: B = None
        self.q: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: A = None
        self.x: H = None
        self.v: A = None
        self.o: D = None
        self.r: C = None
        self.p: C = None
        self.z: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.t: C = None
        self.o: F = None
        self.q: B = None
        self.w: H = None
        self.z: F = None
        self.p: B = None
        self.txt = txt

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

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