class A:
    def __init__(self, txt: str):
        self.v: G = None
        self.y: C = None
        self.s: G = None
        self.x: I = None
        self.o: F = None
        self.r: E = None
        self.z: H = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: G = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.q: H = None
        self.p: G = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.u: G = None
        self.v: A = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.u: D = None
        self.y: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: B = None
        self.t: G = None
        self.q: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: A = None
        self.q: H = None
        self.p: G = None
        self.s: C = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: B = None
        self.u: G = None
        self.v: A = None
        self.y: I = None
        self.o: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.u: D = None
        self.y: C = None
        self.txt = txt

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

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

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

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