class A:
    def __init__(self, txt: str):
        self.y: B = None
        self.o: D = None
        self.v: C = None
        self.t: C = None
        self.w: F = None
        self.q: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: E = None
        self.x: F = None
        self.v: F = None
        self.w: A = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: A = None
        self.o: E = None
        self.q: F = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
e = C("e")
f = D("f")
k = E("k")
b = F("b")
j = E("j")
i = A("i")
n = F("n")
g = A("g")

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

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

class C:
    def __init__(self, txt: str):
        self.z: E = None
        self.r: E = None
        self.x: F = None
        self.v: F = None
        self.w: A = None
        self.t: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: A = None
        self.w: A = None
        self.o: E = None
        self.q: F = None
        self.txt = txt

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

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

h = A("h")
a = B("a")
e = C("e")
f = D("f")
k = E("k")
b = F("b")
j = E("j")
i = A("i")
n = F("n")
g = A("g")

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