int i=0;
while(getchar()!='\n'){
    cin>>nums[i++];
}