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

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

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

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: H = None
        self.r: J = None
        self.w: I = None
        self.y: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: I = None
        self.q: C = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: G = None
        self.r: H = None
        self.y: G = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: J = None
        self.q: H = None
        self.r: J = None
        self.w: I = None
        self.y: B = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.v: F = None
        self.o: I = None
        self.q: C = None
        self.y: E = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: G = None
        self.r: H = None
        self.y: G = None
        self.txt = txt

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

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