class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: B = None
        self.p: C = None
        self.v: D = None
        self.y: J = None
        self.q: C = None
        self.s: D = None
        self.t: B = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: A = None
        self.x: H = None
        self.p: J = None
        self.u: A = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.s: C = None
        self.w: F = None
        self.v: I = None
        self.p: C = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: E = None
        self.s: A = None
        self.x: H = None
        self.p: J = None
        self.u: A = None
        self.r: B = None
        self.o: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: F = None
        self.q: C = None
        self.s: C = None
        self.w: F = None
        self.v: I = None
        self.p: C = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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