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

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

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

class D:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.w: C = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: G = None
        self.s: D = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: E = None
        self.q: B = None
        self.t: C = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: C = None
        self.r: E = None
        self.t: F = None
        self.q: B = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.v: D = None
        self.t: D = None
        self.w: C = None
        self.s: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.r: G = None
        self.s: D = None
        self.y: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: G = None
        self.o: E = None
        self.q: B = None
        self.t: C = None
        self.y: C = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: C = None
        self.p: C = None
        self.r: E = None
        self.t: F = None
        self.q: B = None
        self.txt = txt

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

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