import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 }
} import java.util.*; util.* java public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 }
} Main public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 } main {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int coin = 0; coin 0 if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    } a>=b a b {
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    } coin = coin + a coin coin + a coin a if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      } a-1>=b a-1 a 1 b {
        coin = coin + (a-1);
      } coin = coin + (a-1) coin coin + (a-1) coin (a-1) a 1 {
        coin = coin + b;
      } coin = coin + b coin coin + b coin b {
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    } coin = coin + b coin coin + b coin b if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      } b-1>=a b-1 b 1 a {
        coin = coin + (b-1);
      } coin = coin + (b-1) coin coin + (b-1) coin (b-1) b 1 {
        coin = coin + a;
      } coin = coin + a coin coin + a coin a System.out.println(coin) System.out.println System.out System System.out coin String args[] args public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 }
} public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 }
} Main
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int coin = 0;
    if(a>=b){
      coin = coin + a;
      if(a-1>=b){
        coin = coin + (a-1);
      }else{
        coin = coin + b;
      }
    }else{
      coin = coin + b;
      if(b-1>=a){
        coin = coin + (b-1);
      }else{
        coin = coin + a;
      }
    }
    System.out.println(coin);
 }
}