Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

DIGIT0 - Số 0 tận cùng

Trailing zeroes

Given a string of N lowercase characters ('a'->'z') (N ≤ 10000). Consider the different permutations of this string. For example, with the string abbb we have four permutations:

abbb, babb, bbab, bbba

Your task is to find the number of trailing zeroes in the number of different permutations of the given string.

Input

A single line: the string S.

Output

A single number: the number of trailing zeroes.

Example

Input
babb

Output
0

Được gửi lên bởi:VOJ Team
Ngày:2008-08-20
Thời gian chạy:0.200s
Giới hạn mã nguồn:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Ngôn ngữ cho phép:ADA95 ASM32 BASH BF C CSHARP CPP C99 CLPS LISP sbcl LISP clisp D FORTRAN HASK ICON ICK JAVA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON RUBY SCM guile SCM qobi ST TEXT WHITESPACE
Nguồn bài:VNOI Marathon'08-Round 10/DivB
Problem Setter:Nguyễn Trần Nam Khánh

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.