#include <iostream>
using namespace std;

int main() {
	int a=6, b=7;
	a *= a-- * --b;
	cout << a << endl;
	return 0;
}