#include #include #include #include #include #include #include #include #include #include using namespace std;
int main(){int a, b,f=0,f1=0,ans=0;cin >> a >> b;if (a < 0 ) f = 1;if (b < 0) f1 = 1;for (int i = 0; i < abs(b);i++){ ans += a;}if (f == 1 && f1 == 1) cout << abs(ans);else if (f == 1 || f1 == 1) cout << '-' << abs(ans); else cout << ans; return 0;}