class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.z: F = None
        self.u: H = None
        self.o: G = None
        self.w: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.v: G = None
        self.t: D = None
        self.y: A = None
        self.q: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: J = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.w: E = None
        self.t: F = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.p: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.r: F = None
        self.v: G = None
        self.t: D = None
        self.y: A = None
        self.q: H = None
        self.p: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: J = None
        self.t: F = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: F = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.s: C = None
        self.w: E = None
        self.t: F = None
        self.o: B = None
        self.u: E = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: B = None
        self.p: E = None
        self.txt = txt

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

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