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

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: F = None
        self.x: C = None
        self.txt = txt

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

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

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

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

n = A("n")
c = B("c")
h = C("h")
b = D("b")
a = E("a")
f = F("f")
l = B("l")
k = C("k")
j = C("j")

n.z = b
n.q = b
n.y = k
c.w = l
c.u = f
c.x = h
h.s = j
h.o = a
h.u = k
h.q = k
h.z = f
h.x = l
b.x = a
b.t = a
b.s = f
b.p = f
b.o = l
a.s = f
a.u = b
f.s = c
f.o = n
f.z = n
f.y = b
l.w = c
l.u = f
l.x = j
k.s = h
k.q = h
k.o = a
k.u = j
k.z = f
k.x = l
j.s = k
j.o = a
j.u = h
j.q = h
j.z = f
j.x = l
assert c.u.y.x.txt == "
class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.y: C = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: F = None
        self.x: C = None
        self.txt = txt

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

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

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

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

n = A("n")
c = B("c")
h = C("h")
b = D("b")
a = E("a")
f = F("f")
l = B("l")
k = C("k")
j = C("j")

n.z = b
n.q = b
n.y = k
c.w = l
c.u = f
c.x = h
h.s = j
h.o = a
h.u = k
h.q = k
h.z = f
h.x = l
b.x = a
b.t = a
b.s = f
b.p = f
b.o = l
a.s = f
a.u = b
f.s = c
f.o = n
f.z = n
f.y = b
l.w = c
l.u = f
l.x = j
k.s = h
k.q = h
k.o = a
k.u = j
k.z = f
k.x = l
j.s = k
j.o = a
j.u = h
j.q = h
j.z = f
j.x = l
assert c.u.y.x.txt == "a"