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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: B = None
        self.r: G = None
        self.v: A = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: G = None
        self.y: B = None
        self.t: E = None
        self.r: C = None
        self.q: H = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: D = None
        self.s: D = None
        self.t: A = None
        self.w: B = None
        self.q: J = None
        self.y: J = None
        self.z: A = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: C = None
        self.w: C = None
        self.v: D = None
        self.s: E = None
        self.r: B = None
        self.y: E = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: B = None
        self.r: G = None
        self.v: A = None
        self.u: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: G = None
        self.y: B = None
        self.t: E = None
        self.r: C = None
        self.q: H = None
        self.o: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: C = None
        self.w: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: D = None
        self.s: D = None
        self.t: A = None
        self.w: B = None
        self.q: J = None
        self.y: J = None
        self.z: A = None
        self.p: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.o: C = None
        self.w: C = None
        self.v: D = None
        self.s: E = None
        self.r: B = None
        self.y: E = None
        self.txt = txt

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

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

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