class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.z: J = None
        self.x: C = None
        self.v: D = None
        self.q: I = None
        self.p: I = None
        self.u: I = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: G = None
        self.z: D = None
        self.s: J = None
        self.t: B = None
        self.q: G = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.u: A = None
        self.t: A = None
        self.v: D = None
        self.p: I = None
        self.r: H = None
        self.z: E = None
        self.o: I = None
        self.x: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: F = None
        self.y: I = None
        self.p: A = None
        self.w: I = None
        self.o: F = None
        self.s: A = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.w: J = None
        self.x: G = None
        self.z: D = None
        self.s: J = None
        self.t: B = None
        self.q: G = None
        self.v: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: A = None
        self.w: B = None
        self.u: A = None
        self.t: A = None
        self.v: D = None
        self.p: I = None
        self.r: H = None
        self.z: E = None
        self.o: I = None
        self.x: J = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.v: H = None
        self.u: F = None
        self.y: I = None
        self.p: A = None
        self.w: I = None
        self.o: F = None
        self.s: A = None
        self.z: A = None
        self.txt = txt

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

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