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

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: C = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.z: B = None
        self.y: C = None
        self.txt = txt

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

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

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

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