class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.w: B = None
        self.o: E = None
        self.x: F = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.q: F = None
        self.r: C = None
        self.w: B = None
        self.o: E = None
        self.x: F = None
        self.s: D = None
        self.txt = txt

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

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

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

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

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

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