#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<ctime>
using namespace std;
int main(){
int a,b,c,n;
cin>>a>>n;
cout<<(a*n*n+10)<<endl;
return 0;
}
#include<iostream>
#include<iomanip>
#include<cstdio>
#include<cstdlib>
#include<ctime>
using namespace std;
int main(){
int a,b,c,n;
cin>>a>>n;
cout<<(a*n*n+10)<<endl;
return 0;
}