Sequence Input and Prediction