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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: G = None
        self.r: J = None
        self.z: A = None
        self.w: B = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.o: H = None
        self.p: I = None
        self.r: H = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.y: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: E = None
        self.w: G = None
        self.x: G = None
        self.q: D = None
        self.p: E = None
        self.u: C = None
        self.v: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: B = None
        self.o: A = None
        self.p: D = None
        self.x: H = None
        self.u: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.p: G = None
        self.r: J = None
        self.z: A = None
        self.w: B = None
        self.u: A = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.x: F = None
        self.o: H = None
        self.p: I = None
        self.r: H = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.t: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.w: A = None
        self.y: F = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.r: E = None
        self.w: G = None
        self.x: G = None
        self.q: D = None
        self.p: E = None
        self.u: C = None
        self.v: E = None
        self.t: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: F = None
        self.t: B = None
        self.o: A = None
        self.p: D = None
        self.x: H = None
        self.u: B = None
        self.txt = txt

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

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