# include <stdio.h>
long get_long(void){
long input;
char ch;
while(scanf("%ld",&input)!=1){
fflush(stdin);
printf("Please enter an integer value, such as 25,-178,or 3:\n");
}
return input;
}
int main(){
int input=0;
//将返回的input赋给变量input
input=get_long();
printf("%ld",input);
}