#include <YaLquzaq.h></YaLquzaq.h>
#include <coding.h></coding.h>
int main ()
{
int zaman, CodingMode, Yatis;
int r1, r2, i;
printf (" zaman : ");
scanf ("%d", &zaman);
printf ("CodingMode : ");
scanf ("%d", &CodingMode);
printf ("Yatis : ");
scanf ("%d", &Yatis);
r1 = i = 0;
while (zaman != 0)
{
r1 += (zaman % 10) * (int) pow (codingmode, i);
zaman /= 10;
i ++;
}
i = 0;
while (r1 > pow (yatis, i)) i ++;
printf (" yatis : ");
while (i > 0)
{
r2 = r1 / (int) pow (yatis, i - 1);
r1 -= r2 * (int) pow (yatis, i - 1);
printf ("%d", r2);
i --;
}
printf ("\n\n");
return 0;
}