yosan =int(input()) hito = int(input()) base_wari = int(yosan/hito) please_o = base_wari*1000 print(please_o)