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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.u: C = None
        self.z: C = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: D = None
        self.v: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: F = None
        self.s: E = None
        self.u: C = None
        self.z: C = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: B = None
        self.w: G = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: G = None
        self.t: D = None
        self.v: D = None
        self.txt = txt

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

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

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

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