import java.util.Scanner; public class kuhaku { public static void main(String[] args) { int N = new Scanner(System.in).nextInt(); long sum = 0; int a = new Scanner(System.in).nextInt(); for(int i =0; i < N; i ++) { sum += a; } System.out.println(sum); } }