class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.x: F = None
        self.s: I = None
        self.u: C = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: E = None
        self.v: A = None
        self.o: H = None
        self.w: B = None
        self.u: G = None
        self.t: B = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: G = None
        self.z: H = None
        self.q: F = None
        self.p: G = None
        self.u: F = None
        self.x: F = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: J = None
        self.v: C = None
        self.y: H = None
        self.r: B = None
        self.u: G = None
        self.x: E = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: C = None
        self.u: I = None
        self.y: F = None
        self.t: C = None
        self.q: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: H = None
        self.q: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.p: D = None
        self.s: J = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: H = None
        self.q: E = None
        self.v: A = None
        self.o: H = None
        self.w: B = None
        self.u: G = None
        self.t: B = None
        self.z: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.v: G = None
        self.z: H = None
        self.q: F = None
        self.p: G = None
        self.u: F = None
        self.x: F = None
        self.o: J = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.o: J = None
        self.v: C = None
        self.y: H = None
        self.r: B = None
        self.u: G = None
        self.x: E = None
        self.w: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.z: C = None
        self.u: I = None
        self.y: F = None
        self.t: C = None
        self.q: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.p: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: D = None
        self.z: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: H = None
        self.q: B = None
        self.txt = txt

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

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