fun main(args: Array<String>) {
    val N = nextInt()
    val A = listOfLong()
    val ans = A.sumByLong { it - 1 }
    println(ans)
}
inline fun <T> Iterable<T>.sumByLong(selector: (T) -> Long): Long {
    var sum = 0L
    for (element in this) sum += selector(element)
    return sum
}
fun next() = readLine()!!
fun nextInt() = Integer.parseInt(next())
fun nextInt(offset: Int = 0) = nextInt() + offset
fun listOfString() = next().split(" ")
fun listOfLong() = listOfString().map { it.toLong() }



