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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: J = None
        self.r: E = None
        self.s: E = None
        self.o: C = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: C = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: H = None
        self.t: F = None
        self.z: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: D = None
        self.z: D = None
        self.o: E = None
        self.t: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: J = None
        self.r: E = None
        self.s: E = None
        self.o: C = None
        self.z: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: C = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: E = None
        self.z: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: A = None
        self.o: H = None
        self.t: F = None
        self.z: A = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: I = None
        self.s: D = None
        self.z: D = None
        self.o: E = None
        self.t: I = None
        self.txt = txt

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

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