Skip to main content

Accenture

Accenture OA-18 2024

Problem Description

In a tech startup, the team faced a software bug - the zeros in their data outputs were causing their system to crash. A junior developer suggested replacing all the 0's with 5's as a quick fix. By implementing this simple code tweak, they stabilized the system. Your task is to find and return an integer value representing the value that stabilizes the system.

Input Format:

  • input1: An integer value

Output Format:

Return an integer value representing the value that stabilizes the system.

Constraints:

  • 1≤input1≤10^18 : The integer value provided as input.

Example

Sample Input:

input1: 100067

Sample Output:

155567

Explanation:
Here, the given value is 100067. To stabilize the system, the zeros are replaced with fives, resulting in the value 155567.