fork download
  1.  
  2. n=int(input())
  3. s=0
  4. while n!=0:
  5. k=n%10
  6. if k!=5:
  7. n=n//10
  8. continue
  9. s+=1
  10. n=n//10
  11. print(s)
  12.  
Success #stdin #stdout 0.09s 14208KB
stdin
15265425522
5
stdout
4