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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: C = None
        self.s: C = None
        self.z: E = None
        self.x: G = None
        self.q: E = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: B = None
        self.x: A = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: C = None
        self.s: C = None
        self.z: E = None
        self.x: G = None
        self.q: E = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: B = None
        self.x: A = None
        self.s: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

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

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