class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.q: D = None
        self.y: D = None
        self.s: B = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.w: E = None
        self.v: G = None
        self.r: C = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: D = None
        self.r: B = None
        self.q: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: D = None
        self.y: E = None
        self.w: E = None
        self.v: G = None
        self.r: C = None
        self.p: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: G = None
        self.q: A = None
        self.y: G = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: D = None
        self.r: B = None
        self.q: C = None
        self.txt = txt

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

n.z = l
n.q = l
n.y = l
n.s = j
n.o = h
j.t = k
j.y = h
j.w = h
j.p = h
j.v = b
j.r = e
e.s = b
e.y = b
e.q = g
l.q = j
l.w = e
h.z = j
h.w = b
d.w = a
d.z = a
d.q = e
d.y = n
b.s = h
b.v = k
b.r = j
b.q = e
g.z = l
g.q = l
g.y = k
g.s = j
g.o = h
k.q = j
k.w = e
a.w = d
a.z = d
a.q = e
a.y = n
assert b.v.w.y.r.t.q.w.w.q.y.txt == "b"