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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: I = None
        self.t: E = None
        self.z: F = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: A = None
        self.u: B = None
        self.t: A = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: C = None
        self.x: G = None
        self.t: D = None
        self.v: A = None
        self.r: H = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.v: I = None
        self.p: I = None
        self.t: E = None
        self.z: F = None
        self.r: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.w: A = None
        self.u: B = None
        self.t: A = None
        self.r: F = None
        self.q: F = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.t: C = None
        self.z: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: A = None
        self.o: C = None
        self.x: G = None
        self.t: D = None
        self.v: A = None
        self.r: H = None
        self.q: B = None
        self.txt = txt

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

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