class A:
    def __init__(self, txt: str):
        self.z: E = None
        self.o: H = None
        self.w: F = None
        self.s: D = None
        self.x: C = None
        self.y: F = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: B = None
        self.z: D = None
        self.q: C = None
        self.r: H = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: H = None
        self.x: D = None
        self.u: C = None
        self.z: C = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.v: D = None
        self.x: D = None
        self.s: B = None
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.o: B = None
        self.z: D = None
        self.q: C = None
        self.r: H = None
        self.t: E = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.o: D = None
        self.y: H = None
        self.x: D = None
        self.u: C = None
        self.z: C = None
        self.p: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: H = None
        self.v: D = None
        self.x: D = None
        self.s: B = None
        self.q: H = None
        self.w: C = None
        self.txt = txt

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

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

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