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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: J = None
        self.p: E = None
        self.r: J = None
        self.t: E = None
        self.z: A = None
        self.w: J = None
        self.x: F = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: D = None
        self.x: I = None
        self.t: H = None
        self.z: D = None
        self.o: I = None
        self.s: J = None
        self.w: B = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.s: I = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: J = None
        self.p: J = None
        self.v: D = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: B = None
        self.s: F = None
        self.v: I = None
        self.w: G = None
        self.t: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: G = None
        self.t: E = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: J = None
        self.q: J = None
        self.p: E = None
        self.r: J = None
        self.t: E = None
        self.z: A = None
        self.w: J = None
        self.x: F = None
        self.y: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.w: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.y: D = None
        self.x: I = None
        self.t: H = None
        self.z: D = None
        self.o: I = None
        self.s: J = None
        self.w: B = None
        self.v: J = None
        self.q: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.u: D = None
        self.z: D = None
        self.s: I = None
        self.t: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: J = None
        self.r: J = None
        self.p: J = None
        self.v: D = None
        self.z: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: B = None
        self.s: F = None
        self.v: I = None
        self.w: G = None
        self.t: E = None
        self.txt = txt

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

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