class A:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: B = None
        self.y: C = None
        self.x: C = None
        self.s: G = None
        self.q: B = None
        self.z: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: C = None
        self.s: A = None
        self.y: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: C = None
        self.s: A = None
        self.y: E = None
        self.txt = txt

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

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