public static void Main()
String[] text = new String[128];
for (int j = 0; j<128; j ++){
Full = Console.ReadLine();
Char[] numbers = Full.ToCharArray();
for (int i = 0; i < Full.Length; i++){
for (int i = FTstr.Length + 1; i < Full.Length; i++){
for (int i = FTstr.Length + Dstr.Length + 2; i < Full.Length; i++){
int firstTerm = Convert.ToInt32(FTstr);
int difference = Convert.ToInt32(Dstr);
int testNum = Convert.ToInt32(TNstr);
if (firstTerm == 0 && difference == 0 && testNum == 0){
if ((testNum - firstTerm) % difference == 0){
text [k] = "Term " + ((testNum - firstTerm) / difference + 1);
text [k] = "Not in sequence";
for (int i = 0; i < k; i++){
Console.WriteLine(text[i]);