시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
1 초 128 MB 1032 765 644 77.311%

문제

싱기한 네자리 숫자란, [1000,9999]인 10진수 숫자중에서,  다음의 조건을 만족하는 숫자를 말한다.

  • 숫자를 10진수, 12진수, 16진수로 나타낸 다음, 각각의 숫자에 대해, 각 숫자의 자리수를 더했을 때, 세 값이 모두 같아야 한다.

여러분은 싱기한 네자리 숫자를 모두 출력해야 한다.

입력

입력은 주어지지 않는다.

출력

싱기한 네자리 숫자를 오름차순으로 한줄에 하나씩 출력한다.

예제 입력 1


						

예제 출력 1

2992
2993
2994
2995
2996
2997
2998
2999

힌트

싱기한 네자리 숫자의 첫 번째 수는 2992이다.

W3sicHJvYmxlbV9pZCI6IjY2NzkiLCJwcm9ibGVtX2xhbmciOiIwIiwidGl0bGUiOiJcdWMyZjFcdWFlMzBcdWQ1NWMgXHViMTI0XHVjNzkwXHViOWFjIFx1YzIyYlx1Yzc5MCIsImRlc2NyaXB0aW9uIjoiPHA+XHVjMmYxXHVhZTMwXHVkNTVjIFx1YjEyNFx1Yzc5MFx1YjlhYyBcdWMyMmJcdWM3OTBcdWI3ODAsIFsxMDAwLDk5OTldXHVjNzc4IDEwXHVjOWM0XHVjMjE4IFx1YzIyYlx1Yzc5MFx1YzkxMVx1YzVkMFx1YzExYywmbmJzcDsgXHViMmU0XHVjNzRjXHVjNzU4IFx1Yzg3MFx1YWM3NFx1Yzc0NCBcdWI5Y2NcdWM4NzFcdWQ1NThcdWIyOTQgXHVjMjJiXHVjNzkwXHViOTdjIFx1YjlkMFx1ZDU1Y1x1YjJlNC48XC9wPlxyXG5cclxuPHVsPlxyXG5cdDxsaT5cdWMyMmJcdWM3OTBcdWI5N2MgMTBcdWM5YzRcdWMyMTgsIDEyXHVjOWM0XHVjMjE4LCAxNlx1YzljNFx1YzIxOFx1Yjg1YyBcdWIwOThcdWQwYzBcdWIwYjggXHViMmU0XHVjNzRjLCBcdWFjMDFcdWFjMDFcdWM3NTgmbmJzcD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