#include <cstdio>

char s[(int)1e6];

int main()
{
  freopen("spaces.in", "r", stdin);
  freopen("spaces.out", "w", stdout);

  scanf("%s", s);
  printf("%s", s);
  while (scanf("%s", s) == 1)
    printf(" %s", s);
  return 0;
}