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

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

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: I = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.y: B = None
        self.w: A = None
        self.t: C = None
        self.o: B = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: D = None
        self.w: F = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: F = None
        self.q: I = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.p: C = None
        self.y: B = None
        self.w: A = None
        self.t: C = None
        self.o: B = None
        self.q: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: F = None
        self.x: D = None
        self.w: F = None
        self.o: B = None
        self.txt = txt

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

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