#include <stdio.h>


int main(){
	int awal, akhir, temp;
	scanf("%d", &awal);
	temp = awal;
	//debug
	printf("%d\n", awal);
	akhir = 0;
	while(awal>0){
		akhir = akhir*10 + awal %10;
		awal = awal/10;
		printf("%d\n", akhir);
	}
	awal = temp;
	if(akhir == awal){
		puts("Yes");
	}
	else{
		puts("No");
	}
	return 0;
}