class A:
    def __init__(self, txt: str):
        self.v: C = None
        self.z: E = None
        self.y: B = None
        self.s: F = None
        self.u: C = None
        self.x: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: D = None
        self.s: A = None
        self.q: D = None
        self.r: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.u: D = None
        self.s: A = None
        self.q: D = None
        self.r: A = None
        self.p: F = None
        self.txt = txt

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

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

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

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