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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: A = None
        self.s: H = None
        self.p: E = None
        self.o: F = None
        self.y: E = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: G = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: E = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: A = None
        self.s: H = None
        self.p: E = None
        self.o: F = None
        self.y: E = None
        self.q: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: G = None
        self.r: G = None
        self.x: D = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: H = None
        self.u: E = None
        self.s: E = None
        self.txt = txt

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

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