fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,c;
  6. cin>>n;
  7. c=(n-1)*(n-2);
  8. cout<<c;
  9. return 0;
  10. }
Success #stdin #stdout 0s 3464KB
stdin
60
stdout
3422