#include <iostream>
#include <string>
#include <sstream>
using namespace std;
int main(int argc, char *argv[])
{
  string line; 
  while(getline(cin, line )) { 
  	cout << line<<" ---> ";
	istringstream is(line);	
    string hi;
    double hello;
    is >> hello;
	
    if (!is)
    {
        //Strings go here

        is.clear();
        is >> hi;
        cout<<"str: "<< hi << endl;
    }
    else
    {
        cout <<"number: "<< hello << endl;
    }

  }
  cout << "Done!" << endl;
}
