#include <stdio.h>
#include <string.h>

int main(int argc, char** argv){
	char tokenizer[] = "@.";
	char *word;

	word = strtok(argv[1],tokenizer);	//return a word that starts from argv[1] and ends to a tokenizer (i.e. '@' or '.')
	while (word != NULL){				//as long as strtok doesn't reach the end of the word...
		printf("%s\n",word);			//...print the word it returns...
		word = strtok(NULL, tokenizer);	//...and run it again with NULL so it continues from where it was left
	}

	return 0;
}