import java.util.Scanner;
public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    }
} Main public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a a b b x; x a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        } a>=3 && b<=20 a>=3 a 3 b<=20 b 20 {
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        } if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            } a>b a b {
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            } int c = a-1; c a-1 a 1 if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               } c>b c b {
                   System.out.println(a+c);
               } System.out.println(a+c) System.out.println System.out System System.out a+c a c {
                   System.out.println(a+b);
               } System.out.println(a+b) System.out.println System.out System System.out a+b a b {
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            } int c = b-1; c b-1 b 1 if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                } c>a c a {
                    System.out.println(b+c);
                } System.out.println(b+c) System.out.println System.out System System.out b+c b c {
                    System.out.println(a+b);
                } System.out.println(a+b) System.out.println System.out System System.out a+b a b String [] args args public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    }
} public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    }
} Main
import java.util.Scanner;
public class Main {
    public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a, b, x;
        a = sc.nextInt();
        b = sc.nextInt();
        if(a>=3 && b<=20){
            if(a>b){
               int c = a-1;
               if(c>b){
                   System.out.println(a+c);
               }
               else{
                   System.out.println(a+b);
               }
            }
            else{
                int c = b-1;
                if(c>a){
                    System.out.println(b+c);
                }
                else{
                    System.out.println(a+b);
                }
            }
        }
    }
}