#include int main() { int money, people, n; scanf("%d", &money); scanf("%d", &people); money /= 1000; n = money / people; printf("%d", n * 1000); return 0; }