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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: I = None
        self.q: F = None
        self.w: G = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: J = None
        self.y: B = None
        self.w: B = None
        self.z: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: E = None
        self.z: B = None
        self.q: B = None
        self.u: E = None
        self.v: A = None
        self.o: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.u: I = None
        self.q: F = None
        self.w: G = None
        self.p: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: J = None
        self.y: B = None
        self.w: B = None
        self.z: I = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: E = None
        self.z: B = None
        self.q: B = None
        self.u: E = None
        self.v: A = None
        self.o: J = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: C = None
        self.u: B = None
        self.s: B = None
        self.txt = txt

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

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