Go: package main

import (
	"bufio"
	"fmt"
	"os"
	"strconv"
)

var sc = bufio.NewScanner(os.Stdin)

func nextInt() int {
	sc.Scan()
	n, _ := strconv.Atoi(sc.Text())
	return n
}

func main() {
	sc.Split(bufio.ScanWords)

	a, b, c, d, e := nextInt(), nextInt(), nextInt(), nextInt(), nextInt()
	x := a
	if b < x {
		x = b
	}
	if c < x {
		x = c
	}
	y := d
	if e < y {
		y = e
	}

	fmt.Println(x + y - 50)
}

Python: def main():
  a = int(input())
  b = int(input())
  c = int(input())
  d = int(input())
  e = int(input())
  
  ans = -50
  if a <= b:
    if a <= c:
      ans += a
    else:
      ans += c
  else:
    if b <= c:
      ans += b
    else:
      ans += c
  
  if d <= e:
    ans += d
  else:
    ans += e
  
  print(ans)
main()

Python: p = min(input(), input, input())
j = min(input(), input())

print (p + j) - 50

Python: pasta=[int(input())for i in range(3)]
juice=[int(input())for i in range(2)]
p_min=1145141919810
for p in pasta:
    for j in juice:
        if p+j<p_min:p_min=p+j
print(p_min-50)

Python: def main():
    p = [] #pasta
    j = [] #juice

    for _ in range(3):
        p.append(int(input()))
    for _ in range(2):
        j.append(int(input()))

    p.sort()
    j.sort()

    ans = p[0] + j[0] - 50
    print(ans)
    

if __name__ == "__main__":
    main()

Python: print(min(int(input()) for _ in range(3)) + min(int(input()) for _ in range(2)) - 50)

Python: P_1=int(input())
P_2=int(input())
P_3=int(input())
J_1=int(input())
J_2=int(input())
print(min(P_1,P_2,P_3)+min(J_1,J_2)-50)

Python: a = [int(input()) for i in range(5)]
print(min(a[0:3])+min(a[3:])-50)

Python: L = [int(input()) for i in range(5)]
print( min(L[0],L[1],L[2])+ min(L[3],L[4])-50)

Python: a = int(input())
b = int(input())
c = int(input())
d = int(input())
e = int(input())

p=[a,b,c]
d=[d,e]
print(min(p)+min(d)-50)

Python: def main():
    p = min([int(input()) for _ in range(3)])
    j = min([int(input()) for _ in range(2)])
    print(p + j - 50)

if __name__ == '__main__':
    main()

Python: # AOJ 0565: Lunch
# Python3 2018.6.30 bal4u

p = [int(input()) for i in range(5)]
print(min(p[:3])+min(p[3:])-50)

Python: 1999
1999
100
189
100

Python: a=[]
b=[]
for i in range(3):
  a.append(int(input()))
  a.sort()
for j in range(3,5):
  b.append(int(input()))
  b.sort()
print(a[0]+b[0]-50)

Python: pz= [int(input()) for _ in range(5)]
print(min(pz[:3])+min(pz[3:])-50)

Python: p = [int(input()) for _ in range(3)]
j = [int(input()) for _ in range(2)]

print(min(p) + min(j) - 50)

Python: num_list = []
daikin = 0
for num in range(3):
    i = int(input())
    num_list.append(i)
num_list.sort()
daikin += num_list[0]
num_list = []
for num1 in range(2):
    i = int(input())
    num_list.append(i)
num_list.sort()
daikin += num_list[0]
daikin -= 50
print(daikin)

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
print(min(a,b,c)+min(d,e)-50)

Python: l=[]
for i in range(3):
	tmp=int(input())
	l.append(tmp)
j=[]
for i in range(2):
	tmp=int(input())
	j.append(tmp)
a=min(l)+min(j)-50	
print(a)

Python: a = [int(input()) for _ in range(3)]
b = [int(input()) for _ in range(2)]
print(min(a) + min(b) - 50)

Python: N=10000
M=10000
for i in range(3):
  N=min(N,int(input()))
for i in range(2):
  M=min(M,int(input()))
print(N+M-50)

Python: # -*- coding: utf-8 -*-
"""
http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0565

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    pastas = [int(input()) for _ in range(3)]
    drinks = [int(input()) for _ in range(2)]
    total = min(pastas) + min(drinks) - 50
    print(total)


if __name__ == '__main__':
    main(sys.argv[1:])

Python: menu = []
for _ in range(5):
    price = int(input())
    menu.append(price)

pasta = menu[:3]
drink = menu[3:]

print(min(pasta) + min(drink) - 50)

Python: pasta = []
juice = []
for i in range(3):
    pasta.append(input())
for j in range(2):
    juice.append(input())
pasta.sort()
juice.sort()
print (pasta[0] + juice[0] - 50)

Python: p1 = int(input())
p2 = int(input())
p3 = int(input())
j1 = int(input())
j2 = int(input())
print(min(p1, p2, p3) + min(j1, j2) - 50)

Python: a=int(input())
b=int(input())
c=int(input())
d=int(input())
e=int(input())
print(min(a,b,c)+min(d,e)-50)

Python: pasta = [int(input()) for i in range(3)]
juice = [int(input()) for j in range(2)]
print(min(pasta) + min(juice) - 50)

Python: print(min(int(input()),int(input()),int(input())) + min(int(input()),int(input())) - 50)

Python: #A
p = [int(input()) for i in range(3)]
j = [int(input()) for i in range(2)]

print(min(p)+min(j)-50)

Python: a=[int(input())for _ in[0]*5]
print(min(a[:3])+min(a[3:])-50)

Python: pasta = []
juice = []
for i in range(3):
    a = int(input())
    pasta.append(a)
for j in range(2):
    a = int(input())
    juice.append(a)
pasta.sort()
juice.sort()
print(pasta[0]+juice[0]-50)

Python: p = min(input(), input(), input())
j = min(input(), input())

print (p + j) - 50

Python: import sys
import math
p1=int(input())
p2=int(input())
p3=int(input())
j1=int(input())
j2=int(input())
p_min=min(p1,p2,p3)
J_min=min(j1,j2)
min_sum=p_min+J_min-50
print(min_sum)

Python: # -*- coding: utf-8 -*-
A = int(input())
B = int(input())
C = int(input())
D = int(input())
E = int(input())

ans = min(A,B,C) + min(D,E) - 50
print(ans)

Python: print(min(int(input())for _ in'123')+min(int(input())for _ in'12')-50)

Python: a=[int(input()) for i in range(5)]
print(min(a[:3])+min(a[3:5])-50)

Python: p=[]
j=[]

for i in range(3):
    p.append(int(input()))
for i in range(2):
    j.append(int(input()))
  
    p.sort()
    j.sort()
print(p[0]+j[0]-50)

Python: p1, p2, p3, j1, j2=[int(input()) for _ in range(5)]
print(min(p1, p2, p3)+min(j1, j2)-50)

C++: #include<iostream>
#include<stdio.h>
#include<algorithm>
#include<math.h>
int main(){
	int a[5],mini=100000;
	for(int i=0;i<5;++i){
	scanf("%d",&a[i]);
	}
	for(int i=0;i<3;++i){
		if(mini>a[i]){
			mini=a[i];
		}
	}
	printf("%d\n",mini+std::min(a[3],a[4])-50);
	return 0;
}

C++: #include <iostream>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
int p[3];
int d[2];
void solve(){


}
int main(){
  for(int i=0;i<3;i++){
    cin>>p[i];
  }
  for(int i=0;i<2;i++){
    cin>>d[i];
  }
  sort(p,p+3);
  sort(d,d+2);
  cout<<p[0]+d[0]-50<<endl;
  return 0;
}