class A:
    def __init__(self, txt: str):
        self.t: I = None
        self.s: I = None
        self.q: F = None
        self.w: J = None
        self.v: D = None
        self.r: G = None
        self.z: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.q: C = None
        self.w: J = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: E = None
        self.p: A = None
        self.z: I = None
        self.r: J = None
        self.x: J = None
        self.q: I = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.x: F = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: J = None
        self.y: C = None
        self.u: F = None
        self.t: H = None
        self.z: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: E = None
        self.v: F = None
        self.z: D = None
        self.o: E = None
        self.p: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.o: H = None
        self.u: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.x: G = None
        self.q: C = None
        self.w: J = None
        self.r: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: E = None
        self.p: A = None
        self.z: I = None
        self.r: J = None
        self.x: J = None
        self.q: I = None
        self.v: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.s: E = None
        self.x: F = None
        self.p: B = None
        self.v: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.w: C = None
        self.o: J = None
        self.y: C = None
        self.u: F = None
        self.t: H = None
        self.z: C = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: E = None
        self.v: F = None
        self.z: D = None
        self.o: E = None
        self.p: G = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: G = None
        self.o: H = None
        self.u: E = None
        self.txt = txt

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

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