let line;
while(line = readline()) {
    const len = line.length - 8;
    if (len <= 0) {
        print(line.padEnd(8, '0'))
    } else {
        while(true) {
             let t = printStr(line)
             if (t === '0') {
                 break;
             } else {
                 line = line.slice(8)
             }
        }
    }
}

function printStr (str) {
    if (str.length <= 8) {
        print(str.padEnd(8, '0'))
        return '0'
    } else {
        print(str.substr(0, 8))
        return '1'
    }
}