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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: I = None
        self.x: F = None
        self.z: I = None
        self.r: J = None
        self.p: B = None
        self.o: I = None
        self.y: A = None
        self.w: F = None
        self.s: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: G = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.y: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: I = None
        self.x: F = None
        self.z: I = None
        self.r: J = None
        self.p: B = None
        self.o: I = None
        self.y: A = None
        self.w: F = None
        self.s: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: J = None
        self.s: G = None
        self.q: C = None
        self.txt = txt

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

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

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