class A:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: F = None
        self.q: I = None
        self.y: H = None
        self.x: J = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: F = None
        self.q: A = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: H = None
        self.s: H = None
        self.y: H = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.v: D = None
        self.u: F = None
        self.q: A = None
        self.r: C = None
        self.y: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.x: C = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.p: E = None
        self.x: H = None
        self.s: H = None
        self.y: H = None
        self.u: B = None
        self.v: B = None
        self.txt = txt

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

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