class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: A = None
        self.p: D = None
        self.o: E = None
        self.t: D = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: G = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.v: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: I = None
        self.y: A = None
        self.p: D = None
        self.o: E = None
        self.t: D = None
        self.w: H = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: G = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: C = None
        self.v: D = None
        self.y: H = None
        self.txt = txt

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

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

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

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

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