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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: A = None
        self.q: H = None
        self.p: G = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: A = None
        self.r: D = None
        self.z: D = None
        self.y: A = None
        self.o: D = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.w: A = None
        self.q: H = None
        self.p: G = None
        self.t: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: F = None
        self.v: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.v: A = None
        self.r: D = None
        self.z: D = None
        self.y: A = None
        self.o: D = None
        self.txt = txt

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

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