class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.t: E = None
        self.s: H = None
        self.y: B = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: A = None
        self.u: I = None
        self.z: D = None
        self.s: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: G = None
        self.w: G = None
        self.t: D = None
        self.txt = txt

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

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

h.v = j
h.w = j
h.r = a
h.y = a
h.t = e
h.s = m
a.o = j
a.z = i
j.t = a
j.u = k
c.y = h
c.z = k
e.t = f
e.x = h
e.u = g
e.z = c
e.s = a
i.o = c
k.q = f
k.o = f
k.t = m
k.w = g
k.y = a
k.u = c
k.v = i
m.p = a
m.t = a
g.z = a
g.q = k
g.w = k
g.t = c
f.q = e
f.v = e
f.x = e
f.r = c
f.t = c
f.z = m
f.o = h
f.w = h
f.s = a
assert j.t.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.r: B = None
        self.t: E = None
        self.s: H = None
        self.y: B = None
        self.w: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.z: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: B = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: A = None
        self.u: I = None
        self.z: D = None
        self.s: B = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.q: G = None
        self.w: G = None
        self.t: D = None
        self.txt = txt

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

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

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