import java.util.*;

public class Main{
  public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  }
} Main public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  } main {
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  } int[] nums = new int[3]; nums new int[3] 3 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      nums[i] = scanner.nextInt();
    } {
      nums[i] = scanner.nextInt();
    } nums[i] = scanner.nextInt() nums[i] nums i scanner.nextInt() scanner.nextInt scanner if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    } nums[0] % nums[1] == 0 nums[0] % nums[1] nums[0] nums 0 nums[1] nums 1 0 {
    	System.out.println(nums[2] * nums[0] / nums[1]);
    } System.out.println(nums[2] * nums[0] / nums[1]) System.out.println System.out System System.out nums[2] * nums[0] / nums[1] nums[2] * nums[0] nums[2] nums 2 nums[0] nums 0 nums[1] nums 1 {
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    } int v = nums[0] / nums[1] + 1; v nums[0] / nums[1] + 1 nums[0] / nums[1] nums[0] nums 0 nums[1] nums 1 1 System.out.println(nums[2]*v ) System.out.println System.out System System.out nums[2]*v nums[2] nums 2 v String[] args args public class Main{
  public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  }
} public class Main{
  public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[] args){
  int[] nums = new int[3];
    Scanner scanner = new Scanner(System.in);
    for(int i = 0; i < 3;i++){
      nums[i] = scanner.nextInt();
    }
    if(nums[0] % nums[1] == 0){
    	System.out.println(nums[2] * nums[0] / nums[1]);
    }else{
      int v = nums[0] / nums[1] + 1;
    System.out.println(nums[2]*v );
    }
  }
}