class A:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: A = None
        self.t: H = None
        self.r: G = None
        self.v: G = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: H = None
        self.o: D = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: G = None
        self.x: D = None
        self.w: H = None
        self.txt = txt

e = A("e")
l = B("l")
d = C("d")
c = D("c")
f = E("f")
m = F("m")
a = G("a")
j = H("j")
k = I("k")
n = B("n")

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

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

class C:
    def __init__(self, txt: str):
        self.q: B = None
        self.v: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: A = None
        self.t: H = None
        self.r: G = None
        self.v: G = None
        self.o: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: H = None
        self.o: D = None
        self.s: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: G = None
        self.x: D = None
        self.w: H = None
        self.txt = txt

e = A("e")
l = B("l")
d = C("d")
c = D("c")
f = E("f")
m = F("m")
a = G("a")
j = H("j")
k = I("k")
n = B("n")

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