class A:
    def __init__(self, txt: str):
        self.u: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: I = None
        self.s: B = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: D = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.t: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: I = None
        self.s: B = None
        self.v: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.t: D = None
        self.z: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: G = None
        self.t: G = None
        self.txt = txt

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

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

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