class A:
    def __init__(self, txt: str):
        self.x: A = None
        self.r: E = None
        self.z: H = None
        self.t: B = None
        self.s: B = None
        self.w: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: G = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.w: A = None
        self.x: G = None
        self.t: E = None
        self.q: C = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.r: E = None
        self.p: B = None
        self.q: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: G = None
        self.r: B = None
        self.txt = txt

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

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