class A:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: F = None
        self.p: C = None
        self.s: C = None
        self.u: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.q: A = None
        self.x: F = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: F = None
        self.u: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: E = None
        self.p: F = None
        self.q: A = None
        self.x: F = None
        self.t: E = None
        self.txt = txt

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

d.z = g
d.t = m
d.u = m
d.p = n
d.s = e
g.w = a
g.s = d
g.v = k
e.x = d
e.w = g
j.v = b
j.u = n
j.x = n
j.q = g
j.y = d
j.t = l
a.t = b
a.u = k
b.v = k
b.t = k
b.p = m
b.x = m
b.q = d
n.x = d
n.w = g
k.t = m
k.u = a
l.v = m
l.u = e
l.x = e
l.q = g
l.y = d
l.t = j
m.v = k
m.t = k
m.p = b
m.x = b
m.q = d
assert a.t.q.s.x.s.w.s.s.w.v.txt == "k"