Problem Description

String s and position p are provided (0-based). Output character at that position. If p is not integer or out of range, output INVALID.

Input Format

Line1 s. Line2 p.

Output Format

One character or INVALID.

Sample Test Case

Input:
hello 1
Output:
e

Constraints

Length of s

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next