#include <stdio.h>
int main() {
	int vet1[5], vet2[5];
	int i;
	for (i=0; i<5; i++) {
	scanf("%d\n", &vet1[i]);
	}
	for (i=0; i<5; i++) {
	scanf("%d\n", &vet2[i]);
	}
 printf("[");
 for(i=0; i<5; i++) {
  printf("%d", vet1[i]);
  if(i<4) {
  printf(","); }
}
printf("]\n"); 

printf("[");
 for(i=0; i<5; i++) {
  printf("%d", vet2[i]);
  if(i<4) {
  printf(","); }
}
printf("]\n");

printf("[");
 for(i=0; i<5; i++) {
 vet2[i]=vet1[i]+vet2[i];
  printf("%d", vet2[i]);
  if(i<4) {
  printf(","); }
}
printf("]\n");
 return 0;
}
