                              //ABHISHEK AGRAWAL,BIT mesra//               
//Author: Abhishekagrawal  
//Date: 30/05/2021 
//Time: 15:57:20
#include<bits/stdc++.h>
using namespace std;
#define booga cout << "booga" << endl
#define int long long int
#define pb push_back  
#define f first
#define s second
#define mod 1000000007
#define pi (double)acos(-1.0)
#define what_is(x) cerr << #x << " is " << x << endl;
#define debug(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#define safai(...) Clearing_out(__VA_ARGS__)
void Clearing_out() { return; }
 
template <typename Head, typename... Tail>
void Clearing_out(Head &H, Tail & ... T) {
	H.clear();
	Clearing_out(T...);
}
 


 
const int N=400040;int a[N],b[N],c[N],ans,sum;
int n;
int power(int a,int b,int M){a%=M;int res=1;while(b>0){if(b%2 ==1){res=(res*a)%M;}a=(a*a)%M;b/=2;} return res;}
void testcase(){
  int k;
  cin>>n>>k;
  ans=((n*(n+1))/2)*(100*k);
  int cur=(k*(k+1))/2;
  cur*=n;
  cout<<ans+cur;
  return;
}

int32_t main(){
  ios_base::sync_with_stdio(false);
  cin.tie(0);cout.tie(0); 
  /*Today's thought: Push yourself,because no one else is going to do it for you.*/
  /*SELECT * FROM World WHERE "Someone" LIKE '%You%'*/
  //g++ -o a acm.cpp -DENABLE_FILE_IO;./a
  int test=1;
  // cin>>test;  
  int t=0;
  while(test--){
    // cout<<"Case #"<<++t<<":"<<" ";
    testcase();
  } 
  cerr << "Time : " << 1000 *((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";
  return 0;
}


#include <iostream>
using namespace std;
int main(void){
    //prayer
    int M, H;
    cin >> M >> H;
    if (H % M == 0){
        cout << "Yes" << endl;
    }
    else{
        cout << "No"  << endl;
    }
return 0;
}
