use std::io::*;fn main(){let mut a=[0;999];stdin().read(&mut a);let mut i=50;while a[i]<117{a[i+1]|=a[i-50]|a[i]&1;i+=1}stdout().write(&a[0..i]);}