class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: C = None
        self.t: D = None
        self.s: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: G = None
        self.z: G = None
        self.w: F = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.r: E = None
        self.s: E = None
        self.u: F = None
        self.z: G = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.y: C = None
        self.r: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: G = None
        self.z: G = None
        self.w: F = None
        self.t: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.o: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: H = None
        self.p: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.w: E = None
        self.r: E = None
        self.s: E = None
        self.u: F = None
        self.z: G = None
        self.v: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: D = None
        self.z: D = None
        self.y: C = None
        self.r: A = None
        self.txt = txt

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

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