#include <cstdio>
#include <cstring>
#include <cstdlib>

using namespace std;

// File that was given to the user.
FILE *instance_input_file;
// File that was generated by the user's solution.
FILE *user_output_file;

/* This is a function that should be called when some internal error occurs. 
   If it is called it means that there is a really big problem with the system.
   It should NOT be used to notify about users mistakes.
*/
void ierror(int where)
{
  //Example of internal error
  fprintf(stderr, "Internal error - test data are incorrect at %d\n", where);
  exit(2);
}

// Function for reading data
void readdata()
{
	
  /* An example of error messages for the user. It should be in format 'int|message'.
     The int is a number that should be different for each type of error.
     The message is information presented to the user. It should be as short as possible
     and give the user a clear information what is wrong with his solution.
     A detailed explanation of error messages can be included in the problem description.
  */
  printf("%d|Wrong output format\n", -1);
  exit(0);
   
  printf("%d|Center of the factory #%i (0-based) outside of the map\n", -2, i);
  exit(0); 
}

/* Function that should return single integer number - a value of objective function for
   the solution generated by the user.
*/
int getres()
{
  int some_value = 10;
  return some_value;
}

int main(int argc, char **argv)
{
  /* Path to instance input is in argv[1] and path to user's output is in argv[2].
     Beware, program can receive more than two arguments, ignore the rest.
  */
  instance_input_file = fopen(argv[1], "r");
  user_output_file = fopen(argv[2], "r");
  
  if (instance_input_file == NULL) ierror(7);
  if (user_output_file == NULL) ierror(9);
  
  readdata();
  int res = get_res();
	
  /* If user's output is correct and his score value is equal to res,
     judge should print 'res|SUCCESS\n'. The res can be int or double.
  */
  printf("%d|SUCCESS\n", res);
  return 0;
}
