# ODDPWD - Editorial

**URL:** <https://discuss.codechef.com/t/oddpwd-editorial/126100>\
**Category:** editorial\
**Tags:** editorial, start262\
**Created:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/oddpwd-editorial/126100 "2026-10-28T17:30:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iceknight1093](https://www.codechef.com/sites/all/themes/abessive/images/user_default_thumb.jpg) [@iceknight1093](https://discuss.codechef.com/u/iceknight1093)\
**Post date:** [October 28, 2026, 5:30pm UTC](https://discuss.codechef.com/t/oddpwd-editorial/126100/1 "2026-10-28T17:30:18Z")

</div>

# PROBLEM LINK:

[Practice](https://www.codechef.com/problems/ODDPWD)  
[Contest: Division 1](https://www.codechef.com/START262A/problems/ODDPWD)  
[Contest: Division 2](https://www.codechef.com/START262B/problems/ODDPWD)  
[Contest: Division 3](https://www.codechef.com/START262C/problems/ODDPWD)  
[Contest: Division 4](https://www.codechef.com/START262D/problems/ODDPWD)

_ **Author:** _ [nikhil\_010309](https://www.codechef.com/users/nikhil_010309)  
_ **Tester:** _ [raysh07](https://www.codechef.com/users/raysh07)  
_ **Editorialist:** _ [iceknight1093](https://www.codechef.com/users/iceknight1093)

# DIFFICULTY:

TBD

# PREREQUISITES:

None

# PROBLEM:

Given a string S, print its first, third and fifth characters.

# EXPLANATION:

Print the required characters, i.e. S\_1, S\_3, S\_5 if using 1-indexing or S\_0, S\_2, S\_4 under 0-indexing.

# TIME COMPLEXITY:

\mathcal{O}(1) per testcase.

# CODE:

> **Editorialist's code (PyPy3)**
>
> ```python
> s = input()
> print(s[0], s[2], s[4], sep='')
> 
> ```
