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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: A = None
        self.u: E = None
        self.o: D = None
        self.s: E = None
        self.v: G = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: A = None
        self.r: D = None
        self.o: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: A = None
        self.u: E = None
        self.o: D = None
        self.s: E = None
        self.v: G = None
        self.y: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.v: A = None
        self.r: D = None
        self.o: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: A = None
        self.txt = txt

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

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