import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    }	
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    }	
} Main public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    } main {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str = br.readLine(); str br.readLine() br.readLine br int A = Integer.parseInt(str.split(" ")[0]); A Integer.parseInt(str.split(" ")[0]) Integer.parseInt Integer str.split(" ")[0] str.split(" ") str.split str " " 0 int B = Integer.parseInt(str.split(" ")[1]); B Integer.parseInt(str.split(" ")[1]) Integer.parseInt Integer str.split(" ")[1] str.split(" ") str.split str " " 1 int total = 0; total 0 if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	} A >= B A B {
    		total += A;
    		A--;
    	} total += A total A A-- A {
    		total += B;
    		B--;
    	} total += B total B B-- B if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	} A >= B A B {
    		total += A;
    	} total += A total A {
    		total += B;
    	} total += B total B System.out.println(total) System.out.println System.out System System.out total String[] args args public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    }	
} public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    }	
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] args) throws IOException {
    	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	String str = br.readLine();
    	int A = Integer.parseInt(str.split(" ")[0]);
    	int B = Integer.parseInt(str.split(" ")[1]);
    	
    	int total = 0;
    	if (A >= B) {
    		total += A;
    		A--;
    	} else {
    		total += B;
    		B--;
    	}
    	
    	if (A >= B) {
    		total += A;
    	} else {
    		total += B;
    	}
    	
    	System.out.println(total);
    }	
}
