let s=read_line() in print_string(String.map (fun x->(if x<'a' then '1' else '0')) s)