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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.p: A = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: A = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.p: A = None
        self.u: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: B = None
        self.t: A = None
        self.u: E = None
        self.w: E = None
        self.txt = txt

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

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

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