// Online C++ compiler to run C++ program online
#include<iostream>
#include<vector>
#include<stdlib.h>
#include<algorithm>
#include<iomanip>
#include<string.h>
#include<exception>
#include<map>
#include<cmath>
#include<unordered_map>
#include<set>
#include<climits>
#include<ctype.h>
#include<queue>
#include<stack>
using namespace std;
struct Item
{
string str;
bool flag;
int len;
};
int main() {
string str;
cin >> str;
vector<Item> list;
string token = "";
int state = 0;
int validLen = 0;
bool flag = true;
for (int i = 0; i < str.size(); )
{
if (0 == state)
{
if (str[i] == '0')
{
validLen = 0;
if (token.size() < 1)
{
token += str[i];