1303 手机靓号


Submit solution

Points: 100
Time limit: 1.0s
Memory limit: 32M

Problem types
Allowed languages
C, C++, Java, Python

Description

小风凉刚买了手机,去营业厅开户,营业员让其挑选自己喜欢的号码,但那么多的号码着实让他眼花,他对号码的要求是在号码中6和8的个数要超过5个,并且没有数字4,于是就由我给他编了一个程序。

Input

输入不多于50组的数(手机号码),每个数以13或15开头,长为11位。

Output

输出数中,含有6和8不少于5个,并且没有4的数,并统计号码的个数。

Sample

Input

13656689866
13805880343
15967126781
13808866888

Output

13656689866
13808866888
2

Source: 周亨通


Comments

There are no comments at the moment.