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>
#define FASTIO() cin.sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr)
#define D(x) #x,x
#define ll long long
#define fi first
#define se second
#define pii pair<int,int>
#define pil pair<int,ll>
#define pli pair<ll,int>
#define pll pair<ll,ll>
#define MP make_pair
#define pb push_back
using namespace std;
template<class T> void _R(T &x) { cin >> x; }
void _R(int &x) { scanf("%d", &x); }
void _R(ll &x) { scanf("%lld", &x); }
void _R(double &x) { scanf("%lf", &x); }
void _R(char &x) { scanf("%c", &x); }
void _R(char *x) { scanf("%s", x); }
void R() {}
template<class T, class... U> void R(T &head, U &... tail) { _R(head); R(tail...); }
template<class T> void _W(const T &x) { cout << x; }
void _W(const unsigned int &x){printf("%u", x); }
void _W(const int &x) { printf("%d", x); }
void _W(const ll &x) { printf("%lld", x); }
void _W(const double &x) { printf("%.16f", x); }
void _W(const char &x) { putchar(x); }
void _W(const char *x) { printf("%s", x); }
template<class T,class U> void _W(const pair<T,U> &x) {_W(x.fi); putchar(' '); _W(x.se);}
template<class T> void _W(const vector<T> &x) { for (auto i = x.begin(); i != x.end(); _W(*i++)) if (i != x.cbegin()) putchar(' '); }
void W() {}
template<class T, class... U> void W(const T &head, const U &... tail) { _W(head); putchar(sizeof...(tail) ? ' ' : '\n'); W(tail...); }
string s;
int n,a[100005],b[100005],cnt;
int check(int k)
{
    vector<int> ans;
    for(int i = 1; i <= cnt; ++i)
    {
        if(b[i]==1)
            ans.pb(a[i]+k);
        else if(i==1 || i==cnt)
        {
            int sz = a[i]-1-k;
            if(sz<0) continue;
            if(sz==0) return 0;
            if(k==1 && sz%2==0) return 0;
            if(sz%2==0)
                ans.pb(2), sz -= 2;
            else
                ans.pb(1), sz -= 1;
            for(int j = 1; j <= sz/2; ++j)
                ans.pb(1);
        }
        else
        {
            int sz = a[i]-2-k;
            if(sz<0) continue;
            if(sz==0) return 0;
            if(k==1 && sz%2==0) return 0;
            if(sz%2==0)
                ans.pb(2), sz -= 2;
            else
                ans.pb(1), sz -= 1;
            for(int j = 1; j <= sz/2; ++j)
                ans.pb(1);
        }
    }
    cerr << "! k " << k << endl;
    W(ans.size());
    W(ans);
    return 1;
}
int main()
{
    cin >> s;
    n = s.size();
    char f = ' ';
    int len = 0;
    for(int i = 0; i < n; ++i)
    {
        if(s[i]!=f)
        {
//            W('!',i);
            if(f=='_')
            {
                a[++cnt] = len;
                b[cnt] = 0;
            }
            else if(f=='#')
            {
                a[++cnt] = len;
                b[cnt] = 1;
            }
            len = 1;
        }
        else
        {
            ++len;
        }
        f = s[i];
    }
    if(len)
    {
        a[++cnt] = len;
        b[cnt] = s[n-1]=='_'?0:1;
    }
//    for(int i = 1; i <= cnt; ++i)
//        printf("%d ",a[i]);
//    cout << endl;
//    for(int i = 1; i <= cnt; ++i)
//        printf("%d ",b[i]);
//    cout << endl;
    int k = n+1;
    for(int i = 1; i <= cnt; ++i)
    {
         if(b[i]==0)
         {
             if(i==1 || i==cnt)
                k = min(k,a[i]);
            else
                k = min(k,a[i]-1);
         }
    }
    cerr << "cnt " << cnt << endl;
    if(b[1]==1 || b[cnt]==1) k = 0;
    cerr << "@ k " << k << endl;
    if(k==n+1)
    {
        W(1);
        W(n);
        return 0;
    }
    else if(k==n)
    {
        W(0);
        puts("");
        return 0;
    }
    else if(k==0)
    {
        int f = 1;
        for(int i = 1; i <= cnt; ++i)
        {
            if(i==1 || i==cnt)
            {
                if(b[i]==0) f = 0;
            }
            else
            {
                if(b[i]==0 && a[i] > 1) f = 0;
            }
        }
        if(f==0)
        {
            W(-1);
        }
        else
        {
            int ans = 0;
            for(int i = 1; i <= cnt; ++i)
                if(b[i]==1) ++ans;
            W(ans);
            for(int i = 1; i <= cnt; ++i)
                if(b[i]==1)
                    printf("%d ",a[i]);
        }
        return 0;
    }
    if(check(k)==1) return 0;
    if(check(1)==1) return 0;
    if(k>=2)
    {
        if(check(2)==1)
            return 0;
    }
    W(-1);
    return 0;
}