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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: A = None
        self.s: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

k = A("k")
n = B("n")
l = C("l")
a = D("a")
d = E("d")
j = F("j")
g = E("g")
i = B("i")

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

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

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: A = None
        self.s: B = None
        self.o: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

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

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

k = A("k")
n = B("n")
l = C("l")
a = D("a")
d = E("d")
j = F("j")
g = E("g")
i = B("i")

k.r = i
k.z = i
k.o = l
k.u = n
k.w = j
n.z = d
n.t = a
n.q = i
n.s = k
n.v = k
l.r = j
l.z = k
l.s = n
l.o = g
a.v = j
d.p = a
d.u = a
d.z = j
d.q = n
d.v = l
d.r = k
j.v = k
j.t = k
j.r = l
j.z = a
j.x = i
g.p = a
g.u = a
g.z = j
g.q = i
g.v = l
g.r = k
i.z = d
i.t = a
i.q = n
i.s = k
i.v = k
assert l.z.w.v.u.z.p.txt == "a"