class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: F = None
        self.w: J = None
        self.p: E = None
        self.z: D = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: F = None
        self.q: A = None
        self.p: I = None
        self.x: D = None
        self.r: I = None
        self.o: A = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.z: G = None
        self.s: I = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: H = None
        self.w: E = None
        self.s: H = None
        self.r: E = None
        self.v: C = None
        self.o: I = None
        self.u: C = None
        self.p: E = None
        self.t: H = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: F = None
        self.q: A = None
        self.p: I = None
        self.x: D = None
        self.r: I = None
        self.o: A = None
        self.t: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: E = None
        self.z: G = None
        self.s: I = None
        self.q: D = None
        self.r: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.z: E = None
        self.q: H = None
        self.w: E = None
        self.s: H = None
        self.r: E = None
        self.v: C = None
        self.o: I = None
        self.u: C = None
        self.p: E = None
        self.t: H = None
        self.txt = txt

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

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