import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer st = new StringTokenizer(br.readLine(), " ");
int f = Integer.valueOf(st.nextToken());
int s = Integer.valueOf(st.nextToken());
int t = Integer.valueOf(st.nextToken());
int price = 0;
if(f == s && s == t) {
price = 10000 + f * 1000;
} else if(f != s && f != t && s != t) {
int max = Math.max(f, Math.max(s, t));
price = max * 100;
} else {
if(f == s || f == t) {
price = 1000 + f * 100;
} else {
price = 1000 + s * 100;
}
}
System.out.print(price);
}
}