#include <stdio.h>

#define max 50

void sodaonguoc(int x){
        int b;
        int count=0;
        int a[max];
        int i=0;
        while (x!=0)
        {
            int d=x%10;
            x/=10;
            count++;
            
            a[i]=d;
            i++;
        }
        int j=count;
        for (int i = 0; i <= count/2; i++)
        {
            j--;
            {
                if (a[i]!=a[j]) b=0;
                else b=1;
            }
            
        }
        if (b==1)
        {
            printf("day la so dao nguoc");
        }
        else if (b==0)
        {
            printf("day khong phai so dao nguoc");
        }
}

int main(void) {
	sodaonguoc(12223);
	return 0;
}
