#include <stdio.h>
#include <stdlib.h>

static char * const ARGV[] = { "a.out", "444" };

// Hack for IDE One not taking command line params
int realMain(int argc, char *argv[])
{
	if (argc < 2)
	   return EXIT_FAILURE; // TODO print out the correct usage of the command line to the user

    char *endPointer = NULL;
    long in;

    in = strtol(argv[1], &endPointer, 10);
    
    if (endPointer != NULL) {
	  switch( in )
	    {
		    case  1: printf("1\n");                 
		    	break;
		    case  2: printf("2\n");                 
		    	break;
		    default: printf("wrong value\n"); 
		    	break;
	    }
	   return EXIT_SUCCESS;
    }
    return EXIT_FAILURE;
}

int main(int argc, char *argv[]) {
	realMain(2, ARGV);
}
