import std.stdio, std.string, std.range, std.conv, std.array, std.algorithm, std.math, std.typecons, std.numeric;

void main() {
    const N = readln.chomp.to!long;
    const as = readln.split.to!(long[]);
    as.map!(a => a-1).sum.writeln;
}

