import "dart:io";
import 'dart:math' as Math;
void main() {
  List a=stdin.readLineSync().split(" ").toList();
  int x=int.parse(a[0]);
  int y=int.parse(a[1].replaceAll(".", ""));
  print((x*y/100).floor());
}