fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n;
  6. cin >> n;
  7. if (n < 3) cout << n;
  8. else cout << (n*(n - 1)*(n - 2));
  9. return 0;
  10. }
Success #stdin #stdout 0s 15232KB
stdin
17
stdout
4080