class A:
    def __init__(self, txt: str):
        self.w: J = None
        self.u: C = None
        self.q: D = None
        self.o: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: H = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: F = None
        self.z: C = None
        self.s: H = None
        self.w: F = None
        self.q: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: H = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: G = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.p: F = None
        self.z: C = None
        self.s: H = None
        self.w: F = None
        self.q: B = None
        self.txt = txt

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

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

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