#T592. 与7无关的数
与7无关的数
Description
A positive integer is called a "7-related number" if it is divisible by 7 or if any digit in its decimal representation is 7. Now, find the sum of the squares of all positive integers less than or equal to n (n < 100) that are not 7-related.
Input Format
The input consists of one line containing a positive integer n (n < 100).
Output Format
Output one line containing an integer, which is the sum of the squares of all positive integers less than or equal to n that are not 7-related.
21
2336
## Source
CodesOnline