class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: I = None
        self.z: C = None
        self.q: D = None
        self.s: B = None
        self.y: E = None
        self.p: D = None
        self.o: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: J = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.v: J = None
        self.p: E = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: H = None
        self.u: E = None
        self.o: B = None
        self.x: J = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: A = None
        self.p: J = None
        self.v: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: D = None
        self.t: D = None
        self.v: J = None
        self.p: E = None
        self.o: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: H = None
        self.q: H = None
        self.u: E = None
        self.o: B = None
        self.x: J = None
        self.txt = txt

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

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

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