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