import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    }
} Main public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    } main {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    } 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 score = 0; score 0 if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        } A > B A B {
            score += A;
            A--;
        } score += A score A A-- A {
            score += B;
            B--;
        } score += B score B B-- B if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        } A > B A B {
            score += A;
            A--;
        } score += A score A A-- A {
            score += B;
            B--;
        } score += B score B B-- B System.out.println(score) System.out.println System.out System System.out score String[] args args public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    }
} public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    }
} Main
import java.util.*;


public class Main {
    public static void main(String[] args) {
        // 自分の得意な言語で
        // Let's チャレンジ！！

        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int score = 0;
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        if (A > B) {
            score += A;
            A--;
        } else {
            score += B;
            B--;
        }
        System.out.println(score);
    }
}