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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: G = None
        self.v: B = None
        self.x: G = None
        self.p: D = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: H = None
        self.s: G = None
        self.x: F = None
        self.z: H = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: J = None
        self.v: A = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: G = None
        self.v: B = None
        self.x: G = None
        self.p: D = None
        self.o: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: H = None
        self.s: G = None
        self.x: F = None
        self.z: H = None
        self.y: C = None
        self.txt = txt

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

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