class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.u: B = None
        self.p: I = None
        self.y: B = None
        self.w: E = None
        self.q: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: B = None
        self.u: D = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: C = None
        self.p: F = None
        self.u: C = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.s: D = None
        self.o: E = None
        self.p: C = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: F = None
        self.y: D = None
        self.s: I = None
        self.x: F = None
        self.z: C = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.w: B = None
        self.u: D = None
        self.y: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: A = None
        self.y: C = None
        self.p: F = None
        self.u: C = None
        self.x: G = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.t: B = None
        self.s: D = None
        self.o: E = None
        self.p: C = None
        self.r: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: F = None
        self.y: D = None
        self.s: I = None
        self.x: F = None
        self.z: C = None
        self.o: I = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.o: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: D = None
        self.w: G = None
        self.txt = txt

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

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