class A:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: H = None
        self.r: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: D = None
        self.x: G = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: H = None
        self.u: C = None
        self.o: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: G = None
        self.q: D = None
        self.v: D = None
        self.o: G = None
        self.z: D = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.w: C = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: A = None
        self.p: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: B = None
        self.t: D = None
        self.x: G = None
        self.y: H = None
        self.w: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: H = None
        self.u: C = None
        self.o: H = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: G = None
        self.q: D = None
        self.v: D = None
        self.o: G = None
        self.z: D = None
        self.x: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: B = None
        self.w: C = None
        self.p: C = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.s: A = None
        self.p: D = None
        self.txt = txt

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

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