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

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

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

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: H = None
        self.y: H = None
        self.r: G = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: D = None
        self.r: A = None
        self.w: H = None
        self.u: H = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: B = None
        self.u: I = None
        self.z: G = None
        self.p: E = None
        self.r: G = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.o: C = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: J = None
        self.q: H = None
        self.y: H = None
        self.r: G = None
        self.p: H = None
        self.v: A = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.z: D = None
        self.r: A = None
        self.w: H = None
        self.u: H = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: B = None
        self.u: I = None
        self.z: G = None
        self.p: E = None
        self.r: G = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: C = None
        self.w: H = None
        self.o: C = None
        self.x: D = None
        self.r: E = None
        self.txt = txt

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

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