class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: B = None
        self.y: C = None
        self.p: I = None
        self.o: C = None
        self.u: C = None
        self.s: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.o: F = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: C = None
        self.r: D = None
        self.v: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.o: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: B = None
        self.w: I = None
        self.o: F = None
        self.q: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.x: F = None
        self.w: C = None
        self.r: D = None
        self.v: F = None
        self.p: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

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

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