#include <bits/stdc++.h>
using namespace std;
int main() 
{
int a=1234;
printf("%#o %#X",a,a);
 return 0;
    }