class A:
    def __init__(self, txt: str):
        self.y: F = None
        self.s: H = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: I = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: I = None
        self.r: E = None
        self.p: I = None
        self.v: I = None
        self.y: E = None
        self.o: F = None
        self.t: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

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

e = A("e")
g = B("g")
a = C("a")
b = D("b")
d = E("d")
n = F("n")
j = G("j")
l = H("l")
h = I("h")
m = J("m")

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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.y: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.p: I = None
        self.t: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: I = None
        self.r: E = None
        self.p: I = None
        self.v: I = None
        self.y: E = None
        self.o: F = None
        self.t: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: F = None
        self.q: G = None
        self.w: E = None
        self.t: J = None
        self.txt = txt

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

e = A("e")
g = B("g")
a = C("a")
b = D("b")
d = E("d")
n = F("n")
j = G("j")
l = H("l")
h = I("h")
m = J("m")

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