import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  }
} Main public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  } main {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int s = 0; s 0 for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    } {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    } if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	} a > b a b {
    		s += a--;
    	} s += a-- s a-- a {
    		s += b--;
    	} s += b-- s b-- b System.out.print(s) System.out.print System.out System System.out s String[] args args public class Main {

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  }
} public class Main {

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner scan = new Scanner(System.in);
    
    int a = scan.nextInt();
    int b = scan.nextInt();
    
    int s = 0;
    
    for (int i = 0; i < 2; i++) {
    	if (a > b) {
    		s += a--;
    	} else {
    		s += b--;
    	}
    }
    
    System.out.print(s);
    
  }
}
