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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.s: G = None
        self.u: A = None
        self.r: C = None
        self.o: E = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.u: A = None
        self.w: B = None
        self.r: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: C = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: E = None
        self.z: D = None
        self.s: G = None
        self.u: A = None
        self.r: C = None
        self.o: E = None
        self.x: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: C = None
        self.u: A = None
        self.w: B = None
        self.r: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: C = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

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

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

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