#281. twoChar

twoChar

Background

Description

Given a string and an index, return a string length 2 starting at the given index. If the index is too big or too small to define a string length 2, use the first 2 chars. The string length will be at least 2.

Format

Input

Output

Samples

java" 
"ja"
java" 
"va"
java" 
"ja"

Limitation

1s, 1024KiB for each test case.