using System;
class collatz{
public static void printLothar(int A)
{ while(A != 1)
{ Console.WriteLine(A + " ");
if ((A & 1) == 1)
A = 3*A+1;
else A = A/2; }
Console.WriteLine(A + "The collatz line for A is: "); }
public static void Main()
{ printLothar(6); }
}