#include<iostream>
#include<string>
#include<vector>
using std::vector;
using std::cout;
using std::string;
using std::endl;
using std::cin;
int main()
{
vector<int> a;
int num;
while (cin >> num)
a.push_back(num);
for (auto temp:a)
cout << temp << ",";
cout << endl;
cout << a.size() << endl;
return 0;
}