#include <stdio.h>

int main() {
    
    int a, b;
    
    scanf("%s%d", &a, &b);
    
    print("%d", a | b);
    return 0;
}