#include int main() { int a, b; scanf("%d %d", &a, &b); if (a < b) printf("%d\n", 2 * a); else if (a > b) printf("%d\n", 2 * b); else printf("%d\n", a + b - 1); return 0; }