import java.util.*; public class Main { public static void main(String[] args) { int o,p,q; long a = 0, b = 0,c=0; Scanner sc = new Scanner(System.in); // int[] test = new int[100000]; // String str1 = sc.next(); long s = Long.parseLong(sc.next()); long t = Long.parseLong(sc.next()); a = s / ( t * 1000 ) * 1000; System.out.println(a); System.out.println(); } }