class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.y: F = None
        self.q: D = None
        self.v: C = None
        self.t: B = None
        self.r: H = None
        self.x: B = None
        self.u: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: F = None
        self.p: H = None
        self.o: E = None
        self.q: J = None
        self.z: D = None
        self.t: A = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: A = None
        self.p: D = None
        self.x: A = None
        self.w: H = None
        self.v: H = None
        self.q: D = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: J = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: H = None
        self.t: I = None
        self.z: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: J = None
        self.p: A = None
        self.z: E = None
        self.t: J = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: A = None
        self.p: C = None
        self.r: H = None
        self.z: H = None
        self.o: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: I = None
        self.y: F = None
        self.p: H = None
        self.o: E = None
        self.q: J = None
        self.z: D = None
        self.t: A = None
        self.r: E = None
        self.s: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.r: A = None
        self.p: D = None
        self.x: A = None
        self.w: H = None
        self.v: H = None
        self.q: D = None
        self.s: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: J = None
        self.y: H = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.q: E = None
        self.v: H = None
        self.t: I = None
        self.z: A = None
        self.u: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: E = None
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.r: J = None
        self.p: A = None
        self.z: E = None
        self.t: J = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: A = None
        self.p: C = None
        self.r: H = None
        self.z: H = None
        self.o: E = None
        self.txt = txt

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

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