class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.r: C = None
        self.w: H = None
        self.q: D = None
        self.o: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: C = None
        self.z: D = None
        self.p: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: D = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: C = None
        self.z: D = None
        self.p: G = None
        self.r: G = None
        self.v: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: D = None
        self.u: E = None
        self.w: H = None
        self.txt = txt

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

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

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

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

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