Red Rover
题号:NC15833
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 32 M,其他语言64 M
64bit IO Format: %lld

题目描述

输入描述:

Input consists of a single line containing a string made up of the letters N, S, E, and W representing the route to transmit to the rover. The maximum length of the string is 100.

输出描述:

Display the minimum number of characters needed to encode the route.
示例1

输入

复制
WNEENWEENEENE

输出

复制
10