#include<stdio.h>
#include<stdlib.h>

typedef struct TreeNode{
    int data;
    struct TreeNode *left;
    struct Treenode *right;
}node;

int main(){
    int N,L;
    scanf("%d",&N);
    for(int i=1;i<8;i++){
        int x;
        scanf("%d",&N);
        printf("%d ",N);
        
        if(n>=40){
            printf("%d",N);
        }
    }
}