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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.r: G = None
        self.z: A = None
        self.s: C = None
        self.p: G = None
        self.u: F = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.t: E = None
        self.u: D = None
        self.x: G = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: G = None
        self.t: F = None
        self.v: E = None
        self.p: B = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.z: D = None
        self.q: A = None
        self.s: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: F = None
        self.o: E = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: D = None
        self.r: G = None
        self.z: A = None
        self.s: C = None
        self.p: G = None
        self.u: F = None
        self.o: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: F = None
        self.t: E = None
        self.u: D = None
        self.x: G = None
        self.p: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: G = None
        self.t: F = None
        self.v: E = None
        self.p: B = None
        self.s: G = None
        self.r: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.o: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.z: D = None
        self.q: A = None
        self.s: A = None
        self.p: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: F = None
        self.o: E = None
        self.s: F = None
        self.txt = txt

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

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