#include <stdio.h>
int main() 
{
	int a,b;
	scanf("%x %o",&a,&b);
	printf("%d",a+b);
	return 0;
}

输入十六进制,八进制数时要%x,%o