class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.r: J = None
        self.z: F = None
        self.o: I = None
        self.p: F = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: H = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: D = None
        self.x: H = None
        self.y: I = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.p: D = None
        self.txt = txt

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

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

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