class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: E = None
        self.u: C = None
        self.r: G = None
        self.o: I = None
        self.q: H = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: B = None
        self.q: B = None
        self.v: G = None
        self.o: J = None
        self.w: G = None
        self.p: E = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: J = None
        self.t: B = None
        self.q: B = None
        self.v: G = None
        self.o: J = None
        self.w: G = None
        self.p: E = None
        self.s: G = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

class J:
    def __init__(self, txt: str):
        self.o: B = None
        self.x: E = None
        self.txt = txt

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

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