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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: G = None
        self.o: A = None
        self.x: H = None
        self.r: H = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: F = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

k = A("k")
e = B("e")
i = C("i")
l = D("l")
c = E("c")
f = F("f")
d = G("d")
a = H("a")
h = A("h")
g = B("g")

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

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

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: G = None
        self.o: A = None
        self.x: H = None
        self.r: H = None
        self.s: G = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: F = None
        self.z: F = None
        self.u: H = None
        self.x: H = None
        self.txt = txt

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

k = A("k")
e = B("e")
i = C("i")
l = D("l")
c = E("c")
f = F("f")
d = G("d")
a = H("a")
h = A("h")
g = B("g")

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