class A:
    def __init__(self, txt: str):
        self.w: C = None
        self.q: F = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.q: C = None
        self.u: C = None
        self.o: C = None
        self.x: G = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.r: G = None
        self.o: C = None
        self.q: G = None
        self.p: D = None
        self.u: C = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.o: E = None
        self.q: E = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.q: C = None
        self.u: C = None
        self.o: C = None
        self.x: G = None
        self.y: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: H = None
        self.z: H = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: G = None
        self.r: G = None
        self.o: C = None
        self.q: G = None
        self.p: D = None
        self.u: C = None
        self.t: B = None
        self.txt = txt

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

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