import std.stdio, std.conv, std.string, std.math, std.regex, std.range, std.ascii, std.algorithm;

void main(){
	auto ip = readln.split.to!(int[]), A = ip[0], B = ip[1];
	int X;
	if(A > B){
		X += A;
	} else {
		X += B;
	}
		if(A > B){
		X += A;
	} else {
		X += B;
	}
	writeln(X);
}