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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.r: A = None
        self.x: C = None
        self.p: C = None
        self.s: J = None
        self.w: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: H = None
        self.r: G = None
        self.w: G = None
        self.x: H = None
        self.s: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: D = None
        self.o: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.r: A = None
        self.x: C = None
        self.p: C = None
        self.s: J = None
        self.w: E = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: J = None
        self.q: H = None
        self.r: G = None
        self.w: G = None
        self.x: H = None
        self.s: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: C = None
        self.o: F = None
        self.s: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: D = None
        self.o: I = None
        self.txt = txt

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

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