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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.z: A = None
        self.w: I = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: E = None
        self.q: B = None
        self.o: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

m = A("m")
n = B("n")
h = C("h")
c = D("c")
f = E("f")
d = F("d")
b = G("b")
g = H("g")
i = I("i")
e = J("e")

m.s = e
m.p = h
m.u = h
m.v = h
m.x = g
m.o = b
m.w = f
m.r = f
m.q = d
m.y = d
n.q = e
n.p = b
h.q = e
h.t = m
c.x = h
c.q = h
c.o = n
c.v = b
c.t = b
c.w = e
c.z = i
c.y = g
f.x = b
f.v = d
f.o = d
f.z = m
f.w = i
d.p = h
d.r = f
d.o = f
d.q = n
b.o = f
b.q = n
b.x = g
b.t = g
b.p = m
b.r = e
b.v = d
b.y = d
b.u = h
g.y = d
g.r = d
g.v = h
g.q = i
g.u = b
g.s = b
g.t = e
g.o = e
g.w = e
g.p = f
i.x = g
i.w = g
i.y = b
i.t = e
i.z = e
i.q = e
i.r = h
i.o = h
i.v = d
e.o = i
assert i.t.o.v.o.z.s.o.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: C = None
        self.x: H = None
        self.o: G = None
        self.w: E = None
        self.u: C = None
        self.r: E = None
        self.v: C = None
        self.q: F = None
        self.y: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.p: G = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.x: G = None
        self.v: F = None
        self.z: A = None
        self.w: I = None
        self.o: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: C = None
        self.r: E = None
        self.q: B = None
        self.o: E = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

m = A("m")
n = B("n")
h = C("h")
c = D("c")
f = E("f")
d = F("d")
b = G("b")
g = H("g")
i = I("i")
e = J("e")

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