#CCBOTPBA0000023. Kiểm tra số Armstrong 3 chữ số (Three-Digit Armstrong Number)

Kiểm tra số Armstrong 3 chữ số (Three-Digit Armstrong Number)

Three-Digit Armstrong Number

Source: Phước Hưng OJ

Version: Phuoc Hung OJ Extended

Problem Statement

Given a three-digit integer n, check whether the sum of cubes of its digits equals n. Print YES or NO.

Input

An integer n in [100,999].

Output

Exactly YES or NO.

Subtasks

  • Subtask 1 (20%): 100 ≤ n ≤ 299.

  • Subtask 2 (30%): 100 ≤ n ≤ 599.

  • Subtask 3 (50%): 100 ≤ n ≤ 999.

Examples

Example 1

Input:

153

Output:

YES

Explanation: The sum of digit cubes is 1+125+27=153.

Example 2

Input:

100

Output:

NO

Explanation: The sum of digit cubes is only one.