#1: open('input.txt', 'r'), and parse root, tree values