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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: B = None
        self.x: C = None
        self.o: E = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: B = None
        self.z: A = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: A = None
        self.y: B = None
        self.x: C = None
        self.o: E = None
        self.q: C = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: E = None
        self.x: B = None
        self.z: A = None
        self.txt = txt

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

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

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