class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.w: I = None
        self.p: F = None
        self.v: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: B = None
        self.r: B = None
        self.x: D = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: C = None
        self.q: I = None
        self.w: I = None
        self.u: J = None
        self.x: I = None
        self.z: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.p: G = None
        self.v: I = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.t: B = None
        self.r: B = None
        self.x: D = None
        self.z: A = None
        self.p: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: C = None
        self.q: I = None
        self.w: I = None
        self.u: J = None
        self.x: I = None
        self.z: F = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.q: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: G = None
        self.p: G = None
        self.v: I = None
        self.t: F = None
        self.s: B = None
        self.txt = txt

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

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