def parse(inFile):
inFile.getInt()
return inFile.getInts()
def solve(data):
print data
return "%.6f" % len([k for k in xrange(len(data)) if data[k] != k + 1])
if __name__ == "__main__":
from GCJ import GCJ
GCJ(parse, solve, "/Users/lpebody/gcj/2011_q/", "d").run()
ZGVmIHBhcnNlKGluRmlsZSk6CiAgICBpbkZpbGUuZ2V0SW50KCkKICAgIHJldHVybiBpbkZpbGUuZ2V0SW50cygpCgpkZWYgc29sdmUoZGF0YSk6CiAgICBwcmludCBkYXRhCiAgICByZXR1cm4gIiUuNmYiICUgbGVuKFtrIGZvciBrIGluIHhyYW5nZShsZW4oZGF0YSkpIGlmIGRhdGFba10gIT0gayArIDFdKQoKaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKICAgIGZyb20gR0NKIGltcG9ydCBHQ0oKICAgIEdDSihwYXJzZSwgc29sdmUsICIvVXNlcnMvbHBlYm9keS9nY2ovMjAxMV9xLyIsICJkIikucnVuKCkKCiAgICAgICAgICAgIAo=