#include using namespace std; int main(){ int a, b; int n = 0; cin >> a >> b; while (a > 0) { n = n + a*b; a--; } cout << n; return 0; }