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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: D = None
        self.r: C = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

l = A("l")
f = B("f")
j = C("j")
k = D("k")
c = E("c")
h = F("h")
e = G("e")
a = B("a")
n = G("n")
i = A("i")

l.y = e
l.o = i
l.r = i
l.t = k
l.s = a
l.z = a
f.z = j
f.r = j
f.q = k
f.x = i
j.o = h
k.z = h
k.p = n
k.o = i
c.v = j
h.r = f
h.w = f
h.q = f
h.x = n
h.o = j
h.y = k
e.x = a
e.o = j
e.s = j
e.y = h
e.t = k
a.z = j
a.r = j
a.q = k
a.x = l
n.x = f
n.o = j
n.s = j
n.y = h
n.t = k
i.y = e
i.o = l
i.r = l
i.t = k
i.s = f
i.z = f
assert i.y.y.y.z.x.txt == "
class A:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: A = None
        self.r: A = None
        self.t: D = None
        self.s: B = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.q: D = None
        self.r: C = None
        self.x: A = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.v: C = None
        self.txt = txt

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

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

l = A("l")
f = B("f")
j = C("j")
k = D("k")
c = E("c")
h = F("h")
e = G("e")
a = B("a")
n = G("n")
i = A("i")

l.y = e
l.o = i
l.r = i
l.t = k
l.s = a
l.z = a
f.z = j
f.r = j
f.q = k
f.x = i
j.o = h
k.z = h
k.p = n
k.o = i
c.v = j
h.r = f
h.w = f
h.q = f
h.x = n
h.o = j
h.y = k
e.x = a
e.o = j
e.s = j
e.y = h
e.t = k
a.z = j
a.r = j
a.q = k
a.x = l
n.x = f
n.o = j
n.s = j
n.y = h
n.t = k
i.y = e
i.o = l
i.r = l
i.t = k
i.s = f
i.z = f
assert i.y.y.y.z.x.txt == "n"