title: Cassinis Identity
signature: cassinisIdentity(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(int actual, int expected){
      return actual.toString() == expected.toString();
  }
  
  String driver(n, int expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          67, 
          -1)
      }");
  
      print("TEST-1...${driver(
          2, 
          1)
      }");
  
      print("TEST-2...${driver(
          58, 
          1)
      }");
  
      print("TEST-3...${driver(
          6, 
          1)
      }");
  
      print("TEST-4...${driver(
          42, 
          1)
      }");
  
      print("TEST-5...${driver(
          17, 
          -1)
      }");
  
      print("TEST-6...${driver(
          37, 
          -1)
      }");
  
      print("TEST-7...${driver(
          44, 
          1)
      }");
  
      print("TEST-8...${driver(
          23, 
          -1)
      }");
  
      print("TEST-9...${driver(
          40, 
          1)
      }");
  
      return 0;
  }
source_py: def cassinis_identity(n):
      return ((- 1) if (n & 1) else 1)
source_cpp: int cassinis_identity(int n) {
    return ( n & 1 ) ? - 1 : 1;
  }