import java.util.*; import java.text.*; public class Exercise49{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); double v = sc.nextDouble() + 0.00001; int t = sc.nextInt(); DecimalFormat df = new DecimalFormat("#.#####"); String numStr = df.format(v); String x = numStr.substring(2, 6); String trimedStr = x.replaceFirst("^0+", ""); int vd = Integer.parseInt(trimedStr); System.out.println(vd * t / 10000); } }