class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: G = None
        self.z: C = None
        self.p: B = None
        self.o: E = None
        self.v: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: C = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: G = None
        self.z: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: A = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: B = None
        self.s: E = None
        self.q: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.v: C = None
        self.r: G = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: G = None
        self.z: G = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.z: A = None
        self.o: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: B = None
        self.s: E = None
        self.q: D = None
        self.txt = txt

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

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