def solve():
import sys
S = sys.stdin.readline().strip()
# Replace only the last character with '4'
modified = S[:-1] + '4'
print(modified)
if __name__ == "__main__":
solve()
def solve():
import sys
S = sys.stdin.readline().strip()
# Replace only the last character with '4'
modified = S[:-1] + '4'
print(modified)
if __name__ == "__main__":
solve()