solution
#include <iostream>
#include <algorithm>
#include <cstring>
using namespace std;
int tt[100000];
char s[14] = "0123456789ABC";
string work2(int y)
{
string result = "";
if (y == 0)
{
return "00";
}
while (y)
{
int temp = y % 13;
result += s[temp];
y /= 13;
}
if(result.size()==1)
result+="0";
reverse(result.begin(), result.end());
return result;
}
int main()
{
int a, b, c;
cin >> a >> b >> c;
cout << "#";
cout<<work2(a)<<work2(b)<<work2(c);
}