import java.util.*;

class Main
{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    
	    int a = Integer.parseInt(sc.next());
	    int b = Integer.parseInt(sc.next());
	    
	    int sum_1 = a + a - 1;
	    int sum_2 = b + b - 1;
	    int sum_3 = a + b;
	    
	    int ans = Math.max(sum_1, Math.max(sum_2, sum_3));
	    
	    System.out.println(ans);
	}
} import java.util.*; util.* java class Main
{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    
	    int a = Integer.parseInt(sc.next());
	    int b = Integer.parseInt(sc.next());
	    
	    int sum_1 = a + a - 1;
	    int sum_2 = b + b - 1;
	    int sum_3 = a + b;
	    
	    int ans = Math.max(sum_1, Math.max(sum_2, sum_3));
	    
	    System.out.println(ans);
	}
} Main public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    
	    int a = Integer.parseInt(sc.next());
	    int b = Integer.parseInt(sc.next());
	    
	    int sum_1 = a + a - 1;
	    int sum_2 = b + b - 1;
	    int sum_3 = a + b;
	    
	    int ans = Math.max(sum_1, Math.max(sum_2, sum_3));
	    
	    System.out.println(ans);
	} main {
	    Scanner sc = new Scanner(System.in);
	    
	    int a = Integer.parseInt(sc.next());
	    int b = Integer.parseInt(sc.next());
	    
	    int sum_1 = a + a - 1;
	    int sum_2 = b + b - 1;
	    int sum_3 = a + b;
	    
	    int ans = Math.max(sum_1, Math.max(sum_2, sum_3));
	    
	    System.out.println(ans);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int sum_1 = a + a - 1; sum_1 a + a - 1 a + a a a 1 int sum_2 = b + b - 1; sum_2 b + b - 1 b + b b b 1 int sum_3 = a + b; sum_3 a + b a b int ans = Math.max(sum_1, Math.max(sum_2, sum_3)); ans Math.max(sum_1, Math.max(sum_2, sum_3)) Math.max Math sum_1 Math.max(sum_2, sum_3) Math.max Math sum_2 sum_3 System.out.println(ans) System.out.println System.out System System.out ans String[] args args
import java.util.*;

class Main
{
	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    
	    int a = Integer.parseInt(sc.next());
	    int b = Integer.parseInt(sc.next());
	    
	    int sum_1 = a + a - 1;
	    int sum_2 = b + b - 1;
	    int sum_3 = a + b;
	    
	    int ans = Math.max(sum_1, Math.max(sum_2, sum_3));
	    
	    System.out.println(ans);
	}
}
