class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.o: H = None
        self.w: H = None
        self.p: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: G = None
        self.u: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.y: F = None
        self.z: C = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: B = None
        self.q: E = None
        self.o: F = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: E = None
        self.o: F = None
        self.s: D = None
        self.y: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: G = None
        self.x: G = None
        self.u: G = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: C = None
        self.y: F = None
        self.z: C = None
        self.s: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.p: B = None
        self.q: E = None
        self.o: F = None
        self.t: E = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: E = None
        self.o: F = None
        self.s: D = None
        self.y: D = None
        self.txt = txt

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

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

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