#include<stdio.h>
#include<malloc.h>

struct node
{
  int data;
  struct node* left;
  struct node* right;
  struct node* next;
};

typedef struct node Node;

Node* Populate(Node* root)
{
	if(root!=NULL)
	{
		root->Next = Populate(root->right);
		if(root->left!=NULL)
		{	
			root->left->next = root;
			return Populate(root->left);
		}
		else
		{
			return root;
		}
	}
	else
	{
		return NULL;
	}
}

int main(){
 
 
  return 1;
}