#include <iostream>
#include <cstring>
#include <vector>
#include <algorithm>
using std::cout;
using std::cin;
using std::vector;
using std::endl;
using std::sort;



int main(){
    vector<double> notes;
    cout<<"Enter some notes and hit ctrl+D followed by an <enter> to stop: ";
    double input;
    while(cin >> input){
        notes.push_back(input);
    }
    
    cout<<endl<<"Entered notes: ";
    for(int i=0; i<notes.size(); ++i){
        cout<<notes[i]<<" ";
    }
    sort(notes.begin(), notes.end());
    
    cout<<endl<<"Min: "<<notes[0]<<" Max: "<<notes[notes.size()-1];
    
    
  

}