class A:
    def __init__(self, txt: str):
        self.z: G = None
        self.x: G = None
        self.u: E = None
        self.p: G = None
        self.o: D = None
        self.w: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: A = None
        self.o: G = None
        self.s: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.x: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: A = None
        self.o: G = None
        self.s: D = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: F = None
        self.z: F = None
        self.x: G = None
        self.txt = txt

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

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