시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 256 MB111847380.220%

문제

The prolific author Stephen King was entering the grades of his literature students in an on-line general average calculator. When he finished, he noticed his return key was broken so instead of entering the grades of a student in a separate line each, he entered them in a single line without any separation. Since Mr. King does not have the skills to fix his return key right away, he needs you to calculate the average of the grades of the student from the non-separated input.

Each grade is an integer between 1 and 10. All grades were entered written in base 10 without leading zeros. For example, if the grades of Mr. King’s student were 3, 10, 1 and 10 they would be entered as “310110”.

입력

The input consists of a single line that contains a non-empty string S of at most 100 base 10 digits. There is a unique way to partition S into a list of substrings such that each substring represents an integer between 1 and 10 in base 10 without leading zeros.

출력

Output a line with a rational number representing the average of the grades of the student whose grades Mr. King entered as S. The result must be output as a rational number with exactly two digits after the decimal point, rounded if necessary.

예제 입력 1

310110

예제 출력 1

6.00

예제 입력 2

10910

예제 출력 2

9.67

예제 입력 3

222222223

예제 출력 3

2.11

출처

ICPC > Regionals > Latin America > Latin America Regional Contests 2014 PC번

  • 문제를 만든 사람: Pablo Ariel Heiber