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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: B = None
        self.r: B = None
        self.x: D = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.v: C = None
        self.y: D = None
        self.z: A = None
        self.s: C = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.u: D = None
        self.q: B = None
        self.r: B = None
        self.x: D = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: F = None
        self.v: C = None
        self.y: D = None
        self.z: A = None
        self.s: C = None
        self.txt = txt

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

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