#include <iostream>
#include <string>
#include "ccc_time.h"

using namespace std;

int main()
{
	string code;
	Time start;

	getline(cin, code);

	int firsttab = code.find("\t");

	cout << "The first tab is at position " << firsttab << endl;
	string label = code.substr(0, firsttab);
	cout << "Our label is " << label << endl;

	int sectab = code.find("\t", firsttab + 1);
	string opcode  = code.substr(firsttab+1, sectab-firsttab);
	cout << "Our opcode is " << opcode << endl;
	cout << code << endl;
	cout << "Your line is " << code.length() << " characters long\n";

	Time finish;
	cout << "This program took " << finish.seconds_from(start) << " seconds\n";
	cout << "Finished at " << finish.get_hours() << ":" << finish.get_minutes() << ":" << finish.get_seconds() << endl;
}
