#include<stdio.h>

int main(void) {
  char str[40];
  printf("文字列を入力して下さい: "); fgets(str, 40, stdin);
  printf("%s", str);
  return 0;
}
