#include <iostream>
#include <cstdio>
using namespace std;

int main() {
    int i = 1234;
    printf("%#o %#X",i,i);
}
// 64 位输出请用 printf("%lld")