Problem: Joseph really likes the culture of Japan. Last year he learned Japanese traditional clothes and visual arts and now he is trying to find out the secret of the Japanese game called Nonogram.

In the one-dimensional version of the game, there is a row of n empty cells, some of which are to be filled with a pen. There is a description of a solution called a profile — a sequence of positive integers denoting the lengths of consecutive sets of filled cells. For example, the profile of [4, 3, 1] means that there are sets of four, three, and one filled cell, in that order, with at least one empty cell between successive sets.

<image>

A suitable solution for n = 12 and p = [4, 3, 1]. 

<image>

A wrong solution: the first four filled cells should be consecutive. 

<image>

A wrong solution: there should be at least one empty cell before the last filled cell. 

Joseph found out that for some numbers n and profiles p there are lots of ways to fill the cells to satisfy the profile. Now he is in the process of solving a nonogram consisting of n cells and a profile p. He has already created a mask of p — he has filled all the cells that must be filled in every solution of the nonogram.

<image>

The mask for n = 12 and p = [4, 3, 1]: all the filled cells above are filled in every solution. 

After a break, he lost the source profile p. He only has n and the mask m. Help Joseph find any profile p' with the mask m or say that there is no such profile and Joseph has made a mistake.

Input

The only line contains a string m — the mask of the source profile p. The length of m is n (1 ≤ n ≤ 100 000). The string m consists of symbols # and _ — denoting filled and empty cells respectively.

Output

If there is no profile with the mask m, output the number -1. Otherwise, on the first line, output an integer k — the number of integers in the profile p'. On the second line, output k integers of the profile p'.

Examples

Input


__#_____


Output


2
3 2 


Input


_#


Output


-1


Input


___


Output


0

Solution (in CPP):

Solution:
#include<bits/stdc++.h>
using namespace std;

bool DEBUG=0;

typedef long long ll;
typedef pair<int,int> ii;
#define fore(i,a,b) for(int i=a,ggdem=b;i<ggdem;i++)
#define FIN ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define SZ(a) ((int)(a).size())
#define ALL(a) a.begin(),a.end()
#define fst first
#define snd second
#define pb push_back
void answer(vector<int> &v) {
	cout<<SZ(v)<<endl;
	fore(i,0,SZ(v))cout<<v[i]<<" \n"[i==SZ(v)-1];
	exit(0);
}
vector<int>get(string s) {
	int k=0;
	vector<int>res;
	for(char c:s) {
		if(c=='#')k++;
		else if(k)res.pb(k),k=0;
	}
	if(k)res.pb(k);
	return res;
}
string build(int n,vector<int> v) {
	string res(n,'_');
	int p=0;
	for(int i:v) {
		fore(k,p,min(n,i+p))res[k]='#';
		p+=i+1;
	}
	return res;
}
void check(vector<int> v,string s) {
	int n=SZ(s);
	string l=build(n,v);
	reverse(ALL(v));
	string r=build(n,v);
	reverse(ALL(v));
	reverse(ALL(r));
	if(DEBUG) {
		cout<<"check:"<<endl;
		cout<<"s: "<<s<<endl;
		cout<<"v: ";for(int i:v)cout<<i<<" ";cout<<endl;
		cout<<"l: "<<l<<endl;
		cout<<"r: "<<r<<endl;
	}
	int gl=0,gr=0,pl=0,pr=0;
	string res(n,'_');
	fore(i,0,n) {
		if(l[i]=='#' && !pl)gl++;
		if(r[i]=='#' && !pr)gr++;
		if(l[i]=='#' && r[i]=='#' && gl==gr)res[i]='#';
		pl=(l[i]=='#');
		pr=(r[i]=='#');
	}
	if(s==res)answer(v);
}
vector<int> build(int x,string s) {
	int n=SZ(s);
	string res=s;
	if(n-x<0)return get(res);
	fore(i,1,x+1)if(s[n-i]=='#')return get(res);
	fore(i,0,n-x) {
		bool is=1;
		fore(j,i,i+x)if(res[j]=='#')is=0;
		if(res[i+x]=='_')is=0;
		if(is)fore(j,i,i+x)res[j]='#';
	}
	fore(i,0,n-x) {
		bool doit=(res[i]=='_');
		if(i-1>=0 && res[i-1]=='#')doit=0;
		if(i+1<n && res[i+1]=='#')doit=0;
		if(doit)res[i]='#';
	}
	fore(i,0,n-x)if(res[i]=='_' && res[i+1]=='_')res[i]='#';
	if(DEBUG)cout<<"shift "<<x<<": "<<endl<<s<<endl<<res<<endl;
	return get(res);
}
int main() {FIN;
	string s;cin>>s;
	fore(i,0,4) {
		check(build(i,s),s);
	}
	cout<<-1<<endl;
}