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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: A = None
        self.y: I = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: G = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: J = None
        self.x: A = None
        self.y: I = None
        self.w: D = None
        self.txt = txt

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

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

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.x: C = None
        self.r: G = None
        self.z: B = None
        self.v: H = None
        self.txt = txt

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

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

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