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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: A = None
        self.txt = txt

k = A("k")
d = B("d")
i = C("i")
g = D("g")
n = E("n")
m = F("m")
f = G("f")
e = H("e")

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

class B:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: A = None
        self.txt = txt

k = A("k")
d = B("d")
i = C("i")
g = D("g")
n = E("n")
m = F("m")
f = G("f")
e = H("e")

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