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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.t: E = None
        self.r: A = None
        self.p: A = None
        self.o: E = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.v: D = None
        self.w: B = None
        self.t: E = None
        self.r: A = None
        self.p: A = None
        self.o: E = None
        self.txt = txt

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

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