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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: B = None
        self.u: I = None
        self.s: H = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.y: H = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: A = None
        self.o: A = None
        self.v: D = None
        self.x: I = None
        self.s: B = None
        self.q: B = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: B = None
        self.u: I = None
        self.s: H = None
        self.q: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.y: H = None
        self.x: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: A = None
        self.o: A = None
        self.v: D = None
        self.x: I = None
        self.s: B = None
        self.q: B = None
        self.y: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.q: B = None
        self.x: A = None
        self.txt = txt

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

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