SHARE
TWEET

Untitled

a guest Sep 14th, 2017 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. '''
  2. Created on Sep 14, 2017
  3.  
  4. @author: Ashish Namdev
  5. '''
  6. import sys
  7.  
  8. arr = list(map(int, input().strip().split(' ')))
  9. arr_sum = sum(arr)
  10. min_sum_val = arr_sum - max(arr)
  11. max_sum_val = arr_sum - min(arr)
  12.  
  13. print("%d %d"%(min_sum_val, max_sum_val))
RAW Paste Data
Top