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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.t: C = None
        self.txt = txt

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

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

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

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