#CCBCHBAHAI0000036. Xóa phần tử đầu bằng dịch trái (Delete the First Element by Left Shifting)
Xóa phần tử đầu bằng dịch trái (Delete the First Element by Left Shifting)
Xóa phần tử đầu bằng dịch trái (Delete the First Element by Left Shifting)
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem
Given an integer array with logical size :
Delete the first element .
The new logical size is
If , the result satisfies
Print the new logical size and the remaining elements.
Input
The first line contains integer . The second line contains integers .
Output
Print on the first line. If , print the remaining elements in order on the second line.
Subtask
Subtask 1 (100 points): ; .
Example
Input
4
5 6 7 8
Output
3
6 7 8
Explanation
The element is deleted. The remaining three elements shift one position left, so the logical size decreases from 4 to 3.