#include <iostream> #include <cstdio> #include <algorithm> #include <string.h> #include <cmath> #include <queue> using namespace std; int color[3]; char str[13]={'0','1','2','3','4','5','6','7','8','9','A','B','C'}; int main() { scanf("%d %d %d",&color[0],&color[1],&color[2]); printf("#"); for(int i=0;i<3;i++){ int a=color[i]/13; int b=color[i]%13; printf("%c%c",str[a],str[b]); } printf(" "); return 0; }