#P1026. 数字中 7 的个数

数字中 7 的个数

Background

数字中 77 的个数

Description

输入一个非负整数 nn,统计其十进制表示中数字 77 出现的次数。例如 177177 中有两个 77 。

Format

Input

一个整数 n(0≤n≤109)n(0 ≤ n ≤ 10⁹)。

Output

77 出现的次数。

Samples

177
2

Limitation

1s, 1024KiB for each test case.