#include <iostream>using namespace std;int main(){ int a, s; while(true){ cin>>a>>s; cout<<a*s-1; } return 0;}