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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: F = None
        self.z: J = None
        self.w: C = None
        self.s: A = None
        self.p: G = None
        self.u: J = None
        self.o: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.p: I = None
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: D = None
        self.u: G = None
        self.x: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: I = None
        self.q: F = None
        self.z: J = None
        self.w: C = None
        self.s: A = None
        self.p: G = None
        self.u: J = None
        self.o: C = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.y: D = None
        self.w: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: B = None
        self.p: I = None
        self.z: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: H = None
        self.v: D = None
        self.u: G = None
        self.x: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: E = None
        self.txt = txt

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

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