#include <stdio.h>
#include<conio.h>
#include<math.h> 
int main() {
    int i, j, a,b,x;
    scanf("%d%d%d",&a,&b,&x);
    if((0<=a<=b<=10^18) && (1<=x<=10^18)){
   for(i=0; i<=a; i++){
        printf("%d ",a);
    }
    printf("\n");
    for(j=0; j<=b; j++){
        printf("%d ",j);
    }
  
    
    }
    else{
        printf("You Enter something out of the limit.");
    }
    return 0;
}