BSTree tree = new BSTree();
tree.create_empty();
for (int i = 0; i < input.length; ++i) {
String[] rational = input[i].split("/");
Rational rat = null;
if(rational.length==2)
rat = new Rational(Integer.parseInt(rational[0]), Integer.parseInt(rational[1]));
if(rational.length == 1)
rat = new Rational(Integer.parseInt(rational[0]), 1);
if(rat != null)
tree.insert(rat);
}