class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: A = None
        self.w: B = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: B = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: F = None
        self.o: F = None
        self.z: E = None
        self.p: F = None
        self.u: F = None
        self.r: E = None
        self.v: F = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: A = None
        self.w: B = None
        self.x: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.y: B = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: A = None
        self.w: F = None
        self.o: F = None
        self.z: E = None
        self.p: F = None
        self.u: F = None
        self.r: E = None
        self.v: F = None
        self.txt = txt

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

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

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