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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.y: A = None
        self.z: I = None
        self.x: H = None
        self.q: B = None
        self.u: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: C = None
        self.q: E = None
        self.t: A = None
        self.w: J = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: A = None
        self.t: A = None
        self.w: I = None
        self.v: G = None
        self.q: I = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: H = None
        self.t: A = None
        self.y: A = None
        self.z: I = None
        self.x: H = None
        self.q: B = None
        self.u: E = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.x: C = None
        self.q: E = None
        self.t: A = None
        self.w: J = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.s: B = None
        self.t: D = None
        self.p: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.z: A = None
        self.t: A = None
        self.w: I = None
        self.v: G = None
        self.q: I = None
        self.txt = txt

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

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