class A:
    def __init__(self, txt: str):
        self.v: J = None
        self.r: I = None
        self.p: B = None
        self.u: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: D = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: I = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: D = None
        self.q: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: I = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.o: B = None
        self.r: C = None
        self.txt = txt

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

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

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

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

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