#include <iostream>
using namespace std;
int main(){
    int numberofGuests;
    int costperGuest;
    if(!(cin>>numberofGuests>>costperGuests))return 0;
    if(numberofGuests > 0){
        cout<<numberofGuests * costperGuests<<endl;
    }
    else{
        cout<<"Invalid input"<<endl;
    }
    return 0;
}