#include <stdio.h>
unsigned int convert_to_base(int n, int p){
int x = 1;
int power_of_10 = 1;
int digit = 0;
while (n > 0){
for (int i = 1;i < x;i++){
power_of_10 = power_of_10 * 10;
}
x++
int last = n % p;
digit = digit + last * power_of_10;
n = n / p;
}
return digit;
}
int main() { return 0; }