class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.q: E = None
        self.s: G = None
        self.w: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: C = None
        self.o: G = None
        self.s: A = None
        self.p: D = None
        self.z: D = None
        self.v: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.s: H = None
        self.x: G = None
        self.v: D = None
        self.o: G = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.u: F = None
        self.t: E = None
        self.o: A = None
        self.s: H = None
        self.w: H = None
        self.q: C = None
        self.txt = txt

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

a = A("a")
l = B("l")
j = C("j")
e = D("e")
n = E("n")
d = F("d")
k = G("k")
c = H("c")

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.t: C = None
        self.o: G = None
        self.s: A = None
        self.p: D = None
        self.z: D = None
        self.v: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.u: F = None
        self.s: H = None
        self.x: G = None
        self.v: D = None
        self.o: G = None
        self.w: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: B = None
        self.u: F = None
        self.t: E = None
        self.o: A = None
        self.s: H = None
        self.w: H = None
        self.q: C = None
        self.txt = txt

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

a = A("a")
l = B("l")
j = C("j")
e = D("e")
n = E("n")
d = F("d")
k = G("k")
c = H("c")

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