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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: J = None
        self.w: A = None
        self.u: D = None
        self.t: I = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: C = None
        self.y: C = None
        self.w: E = None
        self.z: E = None
        self.o: F = None
        self.q: D = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.r: J = None
        self.w: A = None
        self.u: D = None
        self.t: I = None
        self.p: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: C = None
        self.y: C = None
        self.w: E = None
        self.z: E = None
        self.o: F = None
        self.q: D = None
        self.r: F = None
        self.txt = txt

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

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

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