#include <stdio.h>
#include <stdlib.h>

int main() {
	int n = 0157;		// 111 or 0x6F
	char str[100];
	sprintf(str, "%d %X %o", n, n, n);
	puts(str);
	sprintf(str, "%x", n);
	int nx = atoi(str);
	printf("nx = %d\n", nx);
	sprintf(str, "%o", n);
	int no = atoi(str);
	printf("no = %d\n", no);
	return 0;
}
