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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: H = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: G = None
        self.u: H = None
        self.t: F = None
        self.y: J = None
        self.q: C = None
        self.p: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.w: H = None
        self.o: J = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: F = None
        self.o: H = None
        self.q: A = None
        self.v: I = None
        self.y: C = None
        self.z: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: H = None
        self.s: H = None
        self.x: H = None
        self.v: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.o: G = None
        self.u: H = None
        self.t: F = None
        self.y: J = None
        self.q: C = None
        self.p: B = None
        self.z: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.z: F = None
        self.w: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: G = None
        self.p: E = None
        self.w: H = None
        self.o: J = None
        self.x: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: G = None
        self.s: F = None
        self.o: H = None
        self.q: A = None
        self.v: I = None
        self.y: C = None
        self.z: A = None
        self.txt = txt

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

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