class A:
    def __init__(self, txt: str):
        self.y: E = None
        self.z: E = None
        self.w: E = None
        self.t: I = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.z: G = None
        self.u: G = None
        self.x: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: G = None
        self.r: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: E = None
        self.z: G = None
        self.u: G = None
        self.x: F = None
        self.y: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: G = None
        self.r: H = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: G = None
        self.txt = txt

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

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

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