Input format 1: '10 + 20 - 30'

Input format 2: '10+20-30'