// editor5
#include<stdio.h>
#include<stdlib.h>
typedef struct node{
    int data;
    int node*next;
}Node;
Node*head=NULL,*tail;
void create(int num){
    node*newNode=(node*)malloc(1*sizeof(node));
    newNode->data=num;
    newNode-next=NULL;
    if(head==NULL){
        head=newNode;
        tail=newNode;
    }
    else{
        tail->next=newNode;
        tail=newNode;
        
    }
}
void display(){
    Node*itr;
    for(itr=head;itr!=NULL;itr=itr->next){
        if(itr->data%3==0){
            printf("%d",itr->data);
        }
}