#include<stdio.h>
#include<stdlib.h>
struct WORK
{
int begin;
int end;
int value;
};
int main()
{
int i;
WORK worke[5];
for(i=0; i<5; i++)
scanf("%d%d%d",&worke[i].begin,&worke[i].end,&worke[i].value);
for(i=0; i<5; i++)
printf("%d,%d,%d\n",worke[i].begin,worke[i].end,worke[i].value);
system("pause");
return 0;
}