public class Main{
    public static void main(String[] args){
        int i=1234;
        System.out.println("0"+Integer.toOctalString(i)+" 0X"+Integer.toHexString(i).toUpperCase());
    }
}