Competitions

# Виток 1, Шаг 6 - Строки

# Sleeping cars

A train contains sleeping cars, marked with letter **k**, and sitting cars, marked with letter **p**. Find the biggest number of sleeping cars that follow each other in the train.

#### Input

One line contains a sequence of letters **k** and **p**, with length from **1** to **1000** characters.

#### Output

Print the maximum number of seeping cars that follow each other.

Input example #41

kpkkp

Output example #41

2