#!/usr/bin/env python3
import sys

[a,b,c] = map(int,sys.stdin.readline().split())
ops = ['+','-','*','//']
min = 1e12
minstr = ""
for i in ops:
  if i == '//' and a % b != 0: continue
  e1 = eval(str(a)+i+str(b))
  for j in ops:
    if j == '//' and e1 % c != 0: continue
    e2 = eval(str(e1)+j+str(c))
    if e2 < min and e2 >= 0: 
      min = e2
      minstr = str(a)+i+str(b)+j+str(c)
#print(min,minstr)
print(min)
