class A:
    def __init__(self, txt: str):
        self.u: B = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: D = None
        self.s: A = None
        self.t: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: D = None
        self.s: A = None
        self.t: I = None
        self.txt = txt

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

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

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

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

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

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