text: """
  This program evaluates simple infix expressions by converting them into
  RPN (Reverse Polish Notation) or postfix. Enjoy :)
  
  Author: Alek Frohlich, Date: 15/07/2019.
  """
  
  from infix_to_postfix import convert
  from postfix_eval import parse
  
  if __name__ == '__main__':
      infix = input()
      postfix = convert(infix)
      result = parse(' '.join(postfix))
      print(str(result))
  