class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.s: I = None
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.r: C = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: J = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: D = None
        self.o: B = None
        self.u: J = None
        self.r: H = None
        self.t: H = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: A = None
        self.q: E = None
        self.v: A = None
        self.z: J = None
        self.t: H = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.r: B = None
        self.z: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: E = None
        self.v: H = None
        self.r: C = None
        self.y: I = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.o: J = None
        self.v: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.x: D = None
        self.o: B = None
        self.u: J = None
        self.r: H = None
        self.t: H = None
        self.q: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: D = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: A = None
        self.q: E = None
        self.v: A = None
        self.z: J = None
        self.t: H = None
        self.r: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: D = None
        self.r: B = None
        self.z: C = None
        self.txt = txt

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

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