import java.io.*;
class Node{
Node left;
Node right;
char str;
public Node(){
this.right=null;
this.left=null;
}
public Node(char str){
this(str,null,null);
}
public Node(char str, Node left, Node right){
this.str=str;
this.left=left;
this.right=right;
}
public void visit(){
System.out.println(str+" ");
}
}
class Tree {
Node root;
char c[];
int i=0;
public Tree() {
root=null;
}
public Node CreatTree(Node node){
if(c[i]==' '){
node=null;
i++;
}
else{
node=new Node(c[i]);
System.out.println("