class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: I = None
        self.u: I = None
        self.y: B = None
        self.s: H = None
        self.r: H = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.u: C = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.s: A = None
        self.v: J = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: D = None
        self.txt = txt

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

i.v = b
i.q = e
i.u = e
i.y = l
i.t = l
i.s = k
i.r = k
l.w = i
l.r = e
j.s = b
j.u = e
h.z = i
h.s = f
h.t = l
b.q = e
b.p = e
b.z = e
b.u = j
b.v = f
f.w = g
f.t = l
g.q = k
g.v = i
g.u = i
g.p = i
g.s = e
g.t = j
g.o = h
k.y = i
k.z = l
k.o = m
k.q = h
k.r = e
k.t = e
e.q = i
e.s = i
e.o = i
e.w = l
e.v = m
m.q = j
m.r = h
assert i.s.q.z.u.w.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.q: I = None
        self.u: I = None
        self.y: B = None
        self.s: H = None
        self.r: H = None
        self.t: B = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.u: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: F = None
        self.t: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: I = None
        self.p: I = None
        self.u: C = None
        self.z: I = None
        self.v: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.s: A = None
        self.v: J = None
        self.o: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: C = None
        self.r: D = None
        self.txt = txt

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

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