When you asked some guy in your class his name, he called himself S, where S is a string…
- User
When you asked some guy in your class his name, he called himself S, where S is a string of length between 3 and 20 (inclusive) consisting of lowercase English letters. You have decided to choose some three consecutive characters from S and make it his nickname. Print a string that is a valid nickname for him.
Constraints
- 3 \leq |S| \leq 20
- S consists of lowercase English letters. Input
Input is given from Standard Input in the following format:
S
Output
Print your answer.
Examples
Input
takahashi
Output
tak
Input
naohiro
Output
nao
Assistant
We need to respond to a user query. The user describes a problem: "When you asked some guy in your class his name, he called himself S, where S is a string of length between 3 and 20 (inclusive) consisting of lowercase English letters. You have decided to choose some three consecutive characters from S and make it his nickname. Print a string that is a valid nickname for him." So basically we need to output any three consecutive characters from the given string S. The input is S, output any length-3 substring. That's it. It's a simple problem: we could output the first three characters, or any three consecutive. Typically, it's the first three? The examples: Input "takahashi", output "tak". That's the first three. Input "naohiro", output "nao", again first three. So the expected answer is the first three characters. So we need to write a solution that reads S and prints S[0:3] (first three characters). But problem says "choose some three consecutive characters" – so any valid substring of length 3 is acceptable. But given examples, first three is fine.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.