#include <bits/stdc++.h>
using namespace std;
 
int main() {
  double rate;
  int pfm,hrate;
  cin>>rate>>hrate;
  cout<<hrate*2-rate<<endl;
}
#include<iostream>
using namespace std;
int main(){
	int a,i,j,k;
	int s=0;
	while(cin>>a){
		for(i=a;i<600;i+=a){
			s+=i*i*a;
		}
		cout<<s<<endl;
		s=0;
	}
	return 0;
}