text: //Classification: p/DAM/USV/dA/A(v)/fp/cd
  //Written by: Sergey Pomelov
  //Reviewed by:
  //Comment:
  
  #include <stdio.h>
  #include <malloc.h>
  
  int *func(int *q) 
  {
  	if ((q=(int*)malloc(100*sizeof(	int)))==NULL) {
  		printf("malloc error"); 
  		return NULL;
  	} else {
  		return q;
  	}
  }
  
  int main(void) 
  {
  	int c = 1;
  	scanf("%d",&c);
  	int* p = &c;
  	if (c<1) 
  		if (func(p)!=NULL) {
  			p = func(p);
  			*(p+c) = 1;
  			free(p);
  		}
  	printf("%d",c);
  	return 0;
  }
  