class A:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: B = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: D = None
        self.t: G = None
        self.p: G = None
        self.u: F = None
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.v: B = None
        self.w: F = None
        self.o: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: D = None
        self.t: G = None
        self.p: G = None
        self.u: F = None
        self.z: G = None
        self.txt = txt

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

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