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

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: E = None
        self.w: E = None
        self.z: D = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.y: F = None
        self.z: B = None
        self.v: H = None
        self.s: A = None
        self.txt = txt

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

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

e.q = k
e.z = k
e.s = k
e.t = n
e.v = n
e.y = n
e.w = b
a.v = e
a.u = e
a.x = j
a.w = j
a.q = j
a.z = d
k.y = j
k.r = j
k.t = b
f.u = k
j.w = d
j.v = e
j.z = b
j.s = n
n.w = k
n.t = j
b.u = n
b.r = n
b.y = n
b.z = a
b.v = g
b.s = e
g.w = n
d.u = k
assert e.z.r.v.t.w.y.v.y.txt == "
class A:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: F = None
        self.w: G = None
        self.z: C = None
        self.s: C = None
        self.v: F = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: E = None
        self.w: E = None
        self.z: D = None
        self.u: A = None
        self.q: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.t: G = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: F = None
        self.r: F = None
        self.y: F = None
        self.z: B = None
        self.v: H = None
        self.s: A = None
        self.txt = txt

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

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

e.q = k
e.z = k
e.s = k
e.t = n
e.v = n
e.y = n
e.w = b
a.v = e
a.u = e
a.x = j
a.w = j
a.q = j
a.z = d
k.y = j
k.r = j
k.t = b
f.u = k
j.w = d
j.v = e
j.z = b
j.s = n
n.w = k
n.t = j
b.u = n
b.r = n
b.y = n
b.z = a
b.v = g
b.s = e
g.w = n
d.u = k
assert e.z.r.v.t.w.y.v.y.txt == "n"