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