class A:
    def __init__(self, txt: str):
        self.s: G = None
        self.w: I = None
        self.p: H = None
        self.r: B = None
        self.u: C = None
        self.v: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: I = None
        self.x: C = None
        self.u: C = None
        self.y: G = None
        self.w: I = None
        self.z: C = None
        self.r: G = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.x: F = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: I = None
        self.s: B = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: I = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: E = None
        self.r: C = None
        self.t: F = None
        self.v: B = None
        self.q: F = None
        self.w: C = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.v: I = None
        self.x: C = None
        self.u: C = None
        self.y: G = None
        self.w: I = None
        self.z: C = None
        self.r: G = None
        self.t: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.p: C = None
        self.x: F = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: I = None
        self.s: B = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.z: I = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.w: A = None
        self.s: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.s: E = None
        self.r: C = None
        self.t: F = None
        self.v: B = None
        self.q: F = None
        self.w: C = None
        self.u: G = None
        self.y: E = None
        self.txt = txt

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

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