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

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

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: B = None
        self.x: I = None
        self.v: F = None
        self.t: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: C = None
        self.y: I = None
        self.z: H = None
        self.x: I = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.t: C = None
        self.z: F = None
        self.u: A = None
        self.q: G = None
        self.o: A = None
        self.s: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.o: B = None
        self.x: I = None
        self.v: F = None
        self.t: B = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: H = None
        self.p: C = None
        self.y: I = None
        self.z: H = None
        self.x: I = None
        self.q: I = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.o: G = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.y: F = None
        self.v: D = None
        self.t: C = None
        self.z: F = None
        self.u: A = None
        self.q: G = None
        self.o: A = None
        self.s: D = None
        self.txt = txt

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

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