Tổng liên tiếp

View as PDF



Problem type
Points: 1 Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Cho số nguyên \(x\). Kiểm tra xem \(x\) có phải là tổng của các số nguyên dương bắt đầu từ \(1\) không.

Input

  • Một số nguyên dương \(x\) (\(1 \le x \le 10^{9}\)).

Output

  • In ra \(Yes\) nếu thoả mãn. Ngược lại in ra \(No\).

Example

Test 1
Input
3
Output
Yes
Test 2
Input
4
Output
No

Comments

There are no comments at the moment.