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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.q: G = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: C = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: A = None
        self.p: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.o: B = None
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: B = None
        self.q: G = None
        self.t: F = None
        self.r: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: C = None
        self.s: F = None
        self.z: E = None
        self.txt = txt

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

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