#include <iostream>
using namespace std;
int main(){
long long int m,b,s=0,x;
cin>>m>>b;
for(int i=0;i<=b;i++){
x=(b-i)*m;
s=max(s,((i+1)*(x+1)*(i+x))/2);
}
cout<<s;
Taalas Secures $169M to Revolutionize AI with Model-Specific ChipsThe landscape of artificial intelligence hardware is witnessing a seismic shift as Taalas Inc., a burgeoning...
Locals Root for Australian Bid in Whyalla Steelworks Sale
The sale of the Whyalla steelworks has reached a fever pitch, exactly twelve months after the...
Oakland County Faces Mental Health Service Disruptions Amid Crisis Center TakeoverOakland County is currently at a crossroads regarding its mental health crisis services. In...
The Intersection of Ancient Wisdom and Modern Space ExplorationDefence Minister Rajnath Singh has recently shared profound insights regarding India's burgeoning space sector, suggesting that...
Day One Recap: ADCC European Trials Showcase Elite Grappling in BelgradeThe grappling world turned its eyes toward Belgrade, Serbia, this weekend as the ADCC...
The Growing Chemistry in Episodes 7 and 8 of "Positively Yours"
Fans of the hit drama "Positively Yours" are currently on an emotional rollercoaster as...
Urgent Health Advisory: High Bacteria Levels at LA County Beaches
Residents and visitors in Southern California are being urged to stay out of the water...
Remembering James Van Der Beek: A Legacy of Talent and Heart
The entertainment world is currently in mourning following the heartbreaking news that James Van...