https://www.acmicpc.net/problem/5543
#include<stdio.h>
int main() {
int arr[5];
for(int i=0;i<5;i++){
scanf("%d",&arr[i]);
}
int ham=2000;
for(int i=0;i<3;i++){
if(arr[i]<=ham) ham=arr[i];
}
int bev=2000;
for(int i=3;i<5;i++){
if(arr[i]<=bev) bev=arr[i];
}
printf("%d",ham+bev-50);
}