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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: E = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: C = None
        self.z: H = None
        self.v: C = None
        self.w: G = None
        self.x: B = None
        self.t: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.w: I = None
        self.o: A = None
        self.s: G = None
        self.u: I = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: I = None
        self.r: F = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: E = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.s: C = None
        self.z: H = None
        self.v: C = None
        self.w: G = None
        self.x: B = None
        self.t: I = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: B = None
        self.w: I = None
        self.o: A = None
        self.s: G = None
        self.u: I = None
        self.p: G = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: I = None
        self.r: F = None
        self.u: F = None
        self.txt = txt

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

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