Simple I/O C++ program