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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: F = None
        self.s: I = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: D = None
        self.t: B = None
        self.v: G = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: E = None
        self.r: F = None
        self.s: I = None
        self.q: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: D = None
        self.t: B = None
        self.v: G = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

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

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