program main
	implicit none
	integer::ans=0,i,n,a[3005]
    n=int(input())
    do i=1,n
    	a[i]=int(input())
    end do
    do i=1.n
    	ans=ans+a[i]-1
    end do
    write(*,*) ans
    stop
end program main
