using System;
public class Program
{
public static void Main()
Console.WriteLine(SameDigits(5896965));
}
public static bool SameDigits (int x)
int y , z ;
y = x % 10;
while(x > 0)
x = x / 10;
z = x;
if(z == y)
return true;
else
return false;