import java.util.*;
public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		System.out.println("주사위 입력  ");
		int a = s.nextInt();
		int b = s.nextInt();
		int c = s.nextInt();
		long total=0L;
		s.close();
		
		if(a==b && b==c) {
			total = 10000+a*1000;
		}
		else if ((a==b && a!=c)|| (a!=b && b==c)) {
			total = 1000+b*100;
		}
		else if ( a!=b && b!=c && a!=c) {
			if(a>b && a>c) {
				total= a*100;
			}
			else if (a<b && b>c ) {
				total =b*100;
			}
			else if (a<c && b <c) {
				total =c*100;
			}
		}
		System.out.println("상금 : "+total);
	}
}