#include <stdio.h>
int main() {
int relatives, extra, price;
int totalGifts, totalCost;
printf("Enter number of relatives: ");
scanf("%d", &relatives);
printf("Extra gifts: ");
scanf("%d", &extra);
printf("Enter price of each gift: ");
scanf("%d", &price);
totalGifts = relatives + extra;
totalCost = totalGifts * price;
printf("total gifts = %d\n", totalGifts);
printf("total costs = %d\n", totalCost);
return 0;
}