Add input impl base class for inputing lotteries number.