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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.y: I = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: J = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: B = None
        self.u: C = None
        self.z: C = None
        self.x: C = None
        self.p: B = None
        self.o: C = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.o: B = None
        self.w: F = None
        self.x: E = None
        self.q: E = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.y: I = None
        self.u: I = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: I = None
        self.q: J = None
        self.s: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: D = None
        self.y: B = None
        self.u: C = None
        self.z: C = None
        self.x: C = None
        self.p: B = None
        self.o: C = None
        self.v: I = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.o: B = None
        self.w: F = None
        self.x: E = None
        self.q: E = None
        self.txt = txt

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

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

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