insidcode
ProblemsDuelLeaderboardStats
Sign In
  1. Home
  2. Problems
  3. Multiple of 7 or Ends With 7

Multiple of 7 or Ends With 7

Difficulty: Easy

Phase: 1 · Conditional Thinking

XP Reward: 10 XP

Topics: Conditional Thinking, Easy

Supported Languages: Python, JavaScript, C, C++, Java

Problem Description

Check if a number is a multiple of 7 or ends with digit 7. Print 'Yes' or 'No'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).

Constraints

  • -10^9 <= N <= 10^9

Examples

Example 1

Input: 17

Output: Yes

Explanation: Sample execution for input 17