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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: J = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: D = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: D = None
        self.x: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: C = None
        self.w: J = None
        self.y: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.o: D = None
        self.x: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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