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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: H = None
        self.o: A = None
        self.x: E = None
        self.r: E = None
        self.t: G = None
        self.p: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: H = None
        self.o: A = None
        self.x: E = None
        self.r: E = None
        self.t: G = None
        self.p: B = None
        self.y: A = None
        self.txt = txt

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

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

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

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

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

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

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

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

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