import java.util.Scanner; public class No143 { public static void main(String[] args) { Scanner s = new Scanner(System.in); int beans = s.nextInt(); int packages = s.nextInt(); int people = s.nextInt(); int sum = 0; for (int i = 0; i < people; i++) { sum += s.nextInt(); } if (sum > beans * packages) { System.out.println(-1); } int opened = sum / beans; if (sum % beans != 0) { opened++; } System.out.println((packages - opened) * beans); } }