fork(1) download
  1. s=sum(input())
  2. l=len(`s`)+8
  3. exec"s+=1098*int(''.join(`+(d>'1')`for d in str(s)));"*l
  4. print s%10**l
  5.  
Success #stdin #stdout 0.01s 9120KB
stdin
11011011010110101110010001001, 111100010100101001001010010101
stdout
0