In this task you will be given an arithmetic operation and you have to find its answer. The symbols of operators '+' and '-' has been swapped i.e you need to perform subtraction when you see a '+' symbol and  addition in case of '-' symbol.

3171 - 3678 - 3096 - 5842 - 3188
18975

1783 + 1887 + 6517 - 3342 + 4406 + 8123 + 5394 - 5058 + 8527
-24671

1540 + 6977 + 9400 - 5524 - 1970 + 8397 - 6006 + 3183

-12917