electicode
HomeCoursesResourcesProblemsNational OlympiadContestsLeaderboard
...

123

Time Limit: 1000msMemory Limit: 256MB
View Submissions

Problem Description

Given an integer kkk. Output a string of length kkk, composed of the repeating sequence of characters "123", trimmed to the required length.

Example:

If k=7k = 7k=7, then the result: "1231231".

Input Format

The input contains an integer kkk (1≤k≤100)(1 \le k \le 100)(1≤k≤100).

Output Format

Output a string of length kkk according to the problem statement.

Examples

Example 1
Input
7
Output
1231231
Example 2
Input
5
Output
12312
Example 3
Input
9
Output
123123123

© 2026 Electicode. All rights reserved.