using System;
public class Program
{
public static void Main()
string input = "89148000005339755555";
int sum = 0;
// We'll use index i = 0 means the right-most digit, i = 1 is second-right, etc
for (int i = 0; i < input.Length; i++)
// Get the digit at the i'th position from the right
int digit = int.Parse(input[input.Length - i - 1].ToString());
// If it's in odd position (starting from the right), then double it.
if (i % 2 == 1)
digit *= 2;
// If it's now >= 10, subtract 9
if (digit >= 10)
digit -= 9;
}
sum += digit;
// It's a pass if the result is a multiple of 10
bool pass = sum % 10 == 0;
Console.WriteLine(pass ? "Pass" : "Fail");