FIICode 2024 Elevi | Combo

This was the problem page during the contest. Access the current page here.
Time limit: 1s
Memory limit: 256MB
Input:
Output:

Sarima is playing her favourite computer game, Legends of the League. Today she wants to practice combos of different lengths.

A combo is a string only containing the letters a, b, and c that contains no palindromes of length 33 as substrings. For example, abcabc and bca are combos, while aaba is not. Also, because she wants to practice easier combos, the number of letters c in the string has to be as small as possible.

A palindrome is a string that reads the same backward as forward. For example strings a, aaa, aba, and abccba are palindromes, while strings abc, aab, and ab are not.

Input

The first line contains a single integer nn (1n1051 \le n \le 10^5) – the length of the string.

Output

Print a string that satisfies the constraints.

If there are multiple solutions, you may output any of them.

Example 1

stdin

1

stdout

a

Example 2

stdin

2

stdout

aa

Contest info

Official contest

Start time: 1710082800000

Total duration: 2h30m0s

Status: Ended

Log in or sign up to be able to send submissions!