using System;
public class Program
{
public static void Main()
bool [] digit_seen = new bool [10];
int digit;
long n=5;
while (n > 0) {
digit = (int) (n % 10);
if (digit_seen[digit]) //n= digital
break;
digit_seen[digit] = true;
n /= 10;
}
if (n > 0)
Console.WriteLine("Repeated digit\n");
else
Console.WriteLine("No repeated digit\n");