using System;
public class Program
{
public static void Main()
//static void Main(string[] args)
//{
// Q1:
// static void Main(string[] args)
// {
// int c = 0;
// int y = int.Parse(Console.ReadLine());
// for (int i = 1; i <= 9; i++)
// int n = int.Parse(Console.ReadLine());
// if (StartsWith(y, n))
// c++;
// y = n;
// }
// if (c == 9)
// Console.WriteLine("special");
// else
// Console.WriteLine(" not special");
// static bool StartsWith(int n1, int n2)
// if (n2 > n1)
// return false;
// bool okay = true;
// int s = 0;
// int a = n2;
// while (a > 0)
// a /= 10;
// s++;
// double b = Math.Pow(10, s);
// if (n1 % b == n2)
// return true;
// else return false;
//}
//Q2
// int Low, High, c = 0,last = 0,current = 0,c1 = 0;
// for (int i=1;i<=60;i++)
// if (i == 1)
// Console.WriteLine("Pls enter the lowest blood pressure");
// Low = int.Parse(Console.ReadLine());
// Console.WriteLine("Pls enter the highest blood pressure");
// High = int.Parse(Console.ReadLine());
// last = Blood_pressure(Low, High);
// current = Blood_pressure(Low, High);
// if (Blood_pressure(Low, High) == 0)
// Console.WriteLine("Normal level");
// else if (Blood_pressure(Low, High) == 1)
// Console.WriteLine("Pre-pathological level");
// else if (Blood_pressure(Low, High) == 2)
// Console.WriteLine("Medium blood pressure");
// else if (Blood_pressure(Low, High) == 3)
// Console.WriteLine("Severe blood pressure");
// if (last == 3 && current == 3)
// last = current;
// else c = 0;
// if (Blood_pressure(Low,High) == 0)
// if (c == 10)
// c1++;
// Console.WriteLine("the number of tens that the category was Severe blood pressure = {0}",c1);
//static int Blood_pressure(int Low,int High)
// if (Low<80 && High<120)
// return 0;
// else if (Low >=80 && Low <=89 && High>=120 && High <=139)
// return 1;
// else if (Low >= 90 && Low <= 99 && High >= 140 && High <= 159)
// return 2;
// else if (Low >= 100 && High >= 160)
// return 3;
//Q3:
// for (int i = 1; i <= 10; i++)
// int N = int.Parse(Console.ReadLine());
// int Digit1 = int.Parse(Console.ReadLine());
// int Digit2 = int.Parse(Console.ReadLine());
// double NewNumber = Replace(N, Digit1, Digit2);
// Console.WriteLine(NewNumber);
//static double Replace(int N, int Digit1, int Digit2)
// int i = 0;
// double sum = 0;
// while (N > 0)
// int b = N % 10;
// if (b == Digit1)
// sum = sum + Digit2 * Math.Pow(10, i);
// else sum = sum + b * Math.Pow(10, i);
// i++;
// N /= 10;
// return sum;
// Q4
// bool ok = true;
// int first = n, last = -1;
// while (n != -1)
// if (IsLowerOfTow(n) == false) ok = false;
// if (tsa3de(n) == false) ok = false;
// if (n < 0) ok = false;
// last = n;
// n = int.Parse(Console.ReadLine());
// if (last == first && ok == true) Console.WriteLine("mmez");
// else Console.WriteLine("les bmmez");
//static bool IsLowerOfTow(int n)
// while (n > 0)
// int a = n % 10;
// if (a % 2 == 1) c++;
// n = n / 10;
// if (c > 2) return false;
//static bool tsa3de(int n)
// while (n > 10)
// int b = n / 10 % 10;
// if (a > b) return false;
//Q5
// static void Main()
// double avg;
// int i = 0, max = 0, sum = 0, min = int.MaxValue, c = 0;
// while (i < 5)
// Isprime(n);
// if (Isprime(n) == true)
// sum += n;
// max = Math.Max(max, n);
// min = Math.Min(min, n);
// avg = (double)(sum) / (double)(i);
// Console.WriteLine(i);
// Console.WriteLine(avg);
// Console.WriteLine(max);
// Console.WriteLine(min);
// Console.WriteLine(c);
//static bool Isprime(int n)
// bool awle = true;
// int cnt = 0;
// for (int i = 2; i < n; i++)
// if (n % i == 0)
// cnt++;
// if (cnt > 0)
// awle = false;
// cnt = 0;
// return awle;
//Q6:
// Random rnd = new Random();
// int c = 0, N1, N2;
// for (int i = 1; i <= 5; i++)
// Console.WriteLine("enter the first num");
// N1 = rnd.Next(100000000,1000000000 + 1);
// Console.WriteLine("enter the second num");
// N2 = rnd.Next(10000000, 99999999 + 1);
// if (Check(N1, N2) == true)
// static bool Check(int N1, int N2)
// int cnt1 = 0, cnt2 = 0, nn1 = N1, nn2 = N2, num1, num2, c = 0;
// while (nn1 > 0 || nn2 > 0)
// nn1 /= 10;
// cnt1++;
// nn2 /= 10;
// cnt2++;
// num1 = N1 % 100;
// N1 /= 100;
// num2 = N2 % 100;
// N2 /= 100;
// if (num1 + 1 == num2)
// if (cnt2 % 2 == 0 && cnt1 % 2 == 0 && cnt1 == cnt2 && cnt1 / 2 == c)
//Q7:
// int start = int.Parse(Console.ReadLine());
// int end = int.Parse(Console.ReadLine());
// for (int i = start; i <= end; i++)
// Console.Write(GetNthItem(i));
//static int GetNthItem(int N)
// int num;
// num = (int)Math.Pow(N, 2);
// return num;
//Q8:
// int num = int.Parse(Console.ReadLine());
// while (num != -1)
// if (num <= 10) ok = false;
// if (!FirstAndLast(num)) ok = false;
// num = int.Parse(Console.ReadLine());
// if (ok) Console.WriteLine("mmtaz");
// else Console.WriteLine("lesa mmtaz");
//static bool FirstAndLast(int num)
// int y= num % 10;
// while (num > 10)
// num = num / 10;
// if (y == num) return true;
//Q9:
// int sum2 = 0, c1 = 0, c2 = 0, i = 0;
// while (i <= 5)
// x = int.Parse(Console.ReadLine());
// if (IsPerfect(x) && x > 28)
// sum2 += x;
// c2++;
// Console.WriteLine(sum2 / 5);
// static bool IsPerfect(int n)
// int sum = 0;
// for (int i = 1; i < n; i++)
// sum += i;
// if (sum != n)
//Q10:
// int digit = int.Parse(Console.ReadLine());
// Console.WriteLine(LastIndexOf(N, Digit));
//static int LastIndexOf(int N, int Digit)
// int c = -1, i = 0, num = N;
// num %= 10;
// if (num == Digit)
// c = i;
// num = N;
// return c;
//Q11:
// Random r = new Random();
// int d = r.Next(10000000, 100000000);
// int n = r.Next(10000000, 100000000);
// if (Check(d, n))
//static bool Check(int n1, int n2)
// bool mmez = true;
// int nn1 = n1, nn2 = n2, c1 = 0, c2 = 0;
// if (!mnazel(n1, n2)) return false;
// while (n1 > 0 && n2 > 0)
// nn1 = n1 % 10;
// n1 /= 100;
// nn2 = n2 % 10;
// n2 /= 100;
// if (nn1 == nn2)
// if (c2 != c1)
// return mmez = false;
// return mmez;
//static bool mnazel(int n1, int n2)
// bool mtsawi = true;
// int num1 = n1, num2 = n2, cnt1 = 0, cnt2 = 0;
// while (num1 > 0 || num2 > 0)
// num1 /= 10;
// num2 /= 10;
// if (cnt1 != cnt2)
// return mtsawi = false;
// return mtsawi;
//Q12:
// for (int i = 1; i <= 100; i++)
// int Num = int.Parse(Console.ReadLine());
// int v = 0;
// Console.WriteLine(RemoveDigits(Num, v));
// if (RemoveDigits(Num, v) == Num)
//static int RemoveDigits(int Num, int v)
// int n, i = 0, sum = 0, Num1 = Num;
// while (Num1 > 0)
// n = Num1 % 10;
// if (n > v && n % 2 == 1)
// Num1 /= 10;
// sum += n * (int)(Math.Pow(10, i));
//Q13:
//a:
//static int GetRightHalf(int Num, int L)
// int l2 = L / 2;
// int num2 = Num % (int)(Math.Pow(10, l2));
// return num2;
////b:
//static int Getlefthalf(int Num, int L)
// int num2 = Num / (int)(Math.Pow(10, l2));
////c:
//static int GetLength(int Num)
// int l = 0;
// while (num > 0)
// num /= 10;
// l++;
// return l;
// for (int i = 1; i < 100; i++)
// if (GetLength(Num) % 2 == 0)
// if (Getlefthalf(num, GetLength(Num)) == GetRightHalf(num, GetLength(Num)))
// if (Getlefthalf(Num, GetLength(Num)) == GetRightHalf(Num, GetLength(Num)))
// Console.WriteLine(num);
// Q14:
// int D = 100;
// while (D < 1000)
// Console.WriteLine(maklob(D));
// Console.WriteLine(tareh(D, maklob(D)));
// Console.WriteLine(maklob(tareh(D, maklob(D))));
// if (tareh(D, maklob(D)) + maklob(tareh(D, maklob(D))) == 1089)
// Console.WriteLine(D);
// D++;
// static int maklob(int n)
// int a, b, c;
// a = n % 10 * 100;
// b = n % 100 / 10 * 10;
// c = n / 100 % 10;
// return a + b + c;
// static int tareh(int n, int d)
// if (n > d)
// return n - d;
// return d - n;
//qu15:
// int num, c = 0;
// num = rnd.Next(100000, 1000000);
// if (yansib(num) == 1000)
//static int yansib(int A)
// if (A == newnum(A))
// return 1000;
////a:
//static int newnum(int A)
// int n, i = 0, b = 0, num2 = A;
// while (num2 > 0)
// n = num2 % 10;
// if (n < 9 && n % 2 == 1)
// n += 1;
// b += n * (int)(Math.Pow(10, i));
// return b;
// Q16
// double c2 = 0, c4 = 0, c6 = 0;
// Console.WriteLine("weels=?");
// int weel =
// int.Parse(Console.ReadLine());
// Console.WriteLine("parts=?");
// int part =
// while (weel != 0)
//sum += Taxi(weel, part);
// if (weel == 2)
// c2 += Taxi(weel, part);
// if (weel == 4)
// c4 += Taxi(weel, part);
// if (weel >= 6)
// c6 += Taxi(weel, part);
// Console.WriteLine("Weels=?");
// weel = int.Parse(Console.ReadLine());
// if (weel == 0)
// break;
//Console.WriteLine("times=");
// part = int.Parse(Console.ReadLine());
// char ch = '%';
//Console.WriteLine("2 Wheels:{0}{1}", ((double)c2 / sum) * 100, ch);
// Console.WriteLine("4 Wheels:{0}{1}", ((double)c4 / sum) * 100, ch);
// Console.WriteLine("6 Wheels:{0}{1}", ((double)c6 / sum) * 100, ch);
// Console.WriteLine("Total income is:{0}", sum);
// public static double Taxi(int wheels, int Time)
// if (wheels == 2)
// if (Time > 3)
// return (Time * 5) * 0.5;
// return Time * 5;
//if (Time == 4)
// return (Time * 6) * 0.5;
// return Time * 6;
// return (Time * 8) * 0.5;
// return Time * 8;
//Q18
//static void Main()
// char letter = char.Parse(Console.ReadLine());
// if (letter < 'a' || letter > 'z')
// Console.WriteLine("invalid char");
// return;
// int oddNum = 1;
// int row = letter - 'a' + 1;
// for (int i = 0; i < row; i++)
// char endF = ' ';
// int menos = 1;
// for (int j = 0; j < oddNum; j++)
// if (j < oddNum / 2 + 1)
// Console.Write(Convert.ToChar('a' + j));
// endF = Convert.ToChar('a' + j);
// Console.Write(Convert.ToChar(endF - menos));
// menos++;
// Console.WriteLine();
// oddNum += 2;
// for (int j = 0; j < row - i; j++) Console.Write(" ");
}