program kotletai;
  var  K, T: integer;
begin
  readln (K, T);
  if K*2 mod T = 0
     then writeln (K*2 div T * 5)
     else writeln ((K*2 div T + 1) * 5);
  readln;
end.