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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: B = None
        self.q: A = None
        self.v: F = None
        self.u: A = None
        self.s: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: A = None
        self.x: D = None
        self.u: E = None
        self.t: D = None
        self.r: C = None
        self.y: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: B = None
        self.q: A = None
        self.v: F = None
        self.u: A = None
        self.s: G = None
        self.z: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: B = None
        self.s: A = None
        self.x: D = None
        self.u: E = None
        self.t: D = None
        self.r: C = None
        self.y: D = None
        self.txt = txt

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

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