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

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: F = None
        self.v: F = None
        self.t: G = None
        self.r: E = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: A = None
        self.s: E = None
        self.y: F = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

k = A("k")
j = B("j")
d = C("d")
h = D("h")
g = E("g")
c = F("c")
i = G("i")
m = C("m")
b = F("b")
l = C("l")

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: F = None
        self.v: F = None
        self.t: G = None
        self.r: E = None
        self.w: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: E = None
        self.t: A = None
        self.s: E = None
        self.y: F = None
        self.q: E = None
        self.u: E = None
        self.txt = txt

k = A("k")
j = B("j")
d = C("d")
h = D("h")
g = E("g")
c = F("c")
i = G("i")
m = C("m")
b = F("b")
l = C("l")

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