How to take input

not able to make a tree with this type of input and its not even explained…