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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.z: D = None
        self.p: E = None
        self.v: D = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: G = None
        self.x: J = None
        self.v: I = None
        self.t: G = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.z: J = None
        self.u: C = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: H = None
        self.x: F = None
        self.p: C = None
        self.q: F = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.v: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: J = None
        self.z: D = None
        self.p: E = None
        self.v: D = None
        self.s: A = None
        self.u: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: F = None
        self.u: G = None
        self.x: J = None
        self.v: I = None
        self.t: G = None
        self.p: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: J = None
        self.y: E = None
        self.z: J = None
        self.u: C = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: B = None
        self.u: H = None
        self.x: F = None
        self.p: C = None
        self.q: F = None
        self.s: C = None
        self.y: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: F = None
        self.v: A = None
        self.q: D = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.r: C = None
        self.x: C = None
        self.v: I = None
        self.txt = txt

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

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