using System.Collections.Generic;
public class FairRandom {
private int lastNumber = 3;
public FairRandom(int a){
else if (lastNumber == 1) {
public static void Main()
Console.WriteLine("Please input 1 integer to be the seed");
string input = Console.ReadLine();
string[] tokens = input.Split();
bool success = int.TryParse(tokens[0],out num);
FairRandom rnd = new FairRandom(num);
Console.WriteLine("Random sequence:");
Console.WriteLine(rnd.Next());
Console.WriteLine("It is not integer.");