class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.v: B = None
        self.z: E = None
        self.r: D = None
        self.p: C = None
        self.y: D = None
        self.q: B = None
        self.o: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: C = None
        self.v: I = None
        self.x: A = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: A = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.w: F = None
        self.u: J = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.v: B = None
        self.t: H = None
        self.o: A = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: D = None
        self.s: C = None
        self.v: D = None
        self.t: A = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.q: C = None
        self.v: I = None
        self.x: A = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: J = None
        self.z: A = None
        self.u: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: J = None
        self.w: F = None
        self.u: J = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: B = None
        self.v: B = None
        self.t: H = None
        self.o: A = None
        self.q: C = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.o: A = None
        self.z: C = None
        self.w: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.w: D = None
        self.o: D = None
        self.s: C = None
        self.v: D = None
        self.t: A = None
        self.x: H = None
        self.u: A = None
        self.txt = txt

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

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