#!/usr/bin/env python3 from typing import * def solve(N: int, H: int, T: List[int]) -> List[str]: return [T[i] + H for i in range(N)] # generated by online-judge-template-generator v4.4.0 (https://github.com/kmyk/online-judge-template-generator) def main(): import sys tokens = iter(sys.stdin.read().split()) N = int(next(tokens)) H = int(next(tokens)) T = [None for _ in range(N)] for i in range(N): T[i] = int(next(tokens)) assert next(tokens, None) is None ans = solve(N, H, T) print(*[ans[i] for i in range(N)]) if __name__ == '__main__': main()