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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: B = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.t: A = None
        self.p: A = None
        self.o: C = None
        self.y: F = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.r: G = None
        self.w: F = None
        self.q: D = None
        self.y: F = None
        self.v: C = None
        self.txt = txt

g = A("g")
k = B("k")
i = C("i")
d = D("d")
j = E("j")
h = F("h")
f = G("f")
l = H("l")
a = I("a")
n = J("n")

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.o: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.y: B = None
        self.p: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: F = None
        self.w: F = None
        self.t: A = None
        self.p: A = None
        self.o: C = None
        self.y: F = None
        self.z: I = None
        self.x: H = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.o: G = None
        self.p: F = None
        self.r: G = None
        self.w: F = None
        self.q: D = None
        self.y: F = None
        self.v: C = None
        self.txt = txt

g = A("g")
k = B("k")
i = C("i")
d = D("d")
j = E("j")
h = F("h")
f = G("f")
l = H("l")
a = I("a")
n = J("n")

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