Guruji And Hearts

4

1 votes
Problem

My good friend Guruji once submitting his code on forum mistakenly forgot to check language option. His code got pasted in general editor. Due to this many portion of his code got changed. One funny thing which happened was that sub-string "<3" got changed into a heart. Your job is simple, count the number of "<3"(quotes for clarity) in a given string.

|s| deontes the length of string

Constraint: 0 < |s| < 100

Input: It will consist of one line, containing the string

Output: Consist of one line containing an integer.

Sample Input:

abcd<3abc<3ab<3ab

Sample Output:

3

Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?