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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.q: F = None
        self.o: I = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: I = None
        self.y: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: E = None
        self.o: B = None
        self.p: E = None
        self.s: G = None
        self.t: E = None
        self.r: B = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: B = None
        self.v: H = None
        self.y: I = None
        self.q: A = None
        self.u: C = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: H = None
        self.x: H = None
        self.o: G = None
        self.u: G = None
        self.s: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.q: F = None
        self.o: I = None
        self.x: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: E = None
        self.z: I = None
        self.y: E = None
        self.q: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.z: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: E = None
        self.o: B = None
        self.p: E = None
        self.s: G = None
        self.t: E = None
        self.r: B = None
        self.w: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: B = None
        self.v: H = None
        self.y: I = None
        self.q: A = None
        self.u: C = None
        self.r: F = None
        self.o: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: C = None
        self.w: H = None
        self.x: H = None
        self.o: G = None
        self.u: G = None
        self.s: D = None
        self.txt = txt

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

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