package codeup100;
import java.util.Scanner;
public class c1090 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String[] nums = sc.nextLine().split(" ");
sc.close();
int a = Integer.parseInt(nums[0]); //ììê°
int r = Integer.parseInt(nums[1]); //ë±ë¹
int n = Integer.parseInt(nums[2]); //ëªë²ì§¸ì¸ì§ ëíë´ë ì«ì
// intì ìµì¢
ì¶ë ¥ê°ì´ ë¤ì´ê°ì§ ìì¼ë¯ë¡ longì¼ë¡ ë§ë ë¤.
// 10 10 10 => 10000000000
//ë±ë¹ìì¼ë¡ ì ê³±ë©ìëë¡ í´ê²°
long sum=0;
for(int i=0; i