#include <stdio.h>
#include <stdlib.h>

int main(int argc, char * argv[])
{
	if (argc == 3)
	{
		FILE * pipe1 = fopen(argv[1],"w");
		FILE * pipe2 = fopen(argv[2],"w");

		char c;
		while (c != EOF)
		{
			c = getchar();
			fputc(c,pipe1);
			fputc(c,pipe2);
		}
	}
	return 0;
}
