#include<stdio.h>

int main (){
	int number, A,B,C;
	scanf("%d", &number );
	A = number / 100;
	B = number % 100 / 10;
	C = number % 10;
	if (A == 7 || B == 7 || C == 7)
	{
		printf("Yes\n");
	}
	else
	{
		printf("No\n");
	}
	
	
	return 0;
}
#include<iostream>

using namespace std;

int f(int x){
	return x*x;
}

int main(){
	int x;
	while(cin>>x){
		int ans=0;
		for(int i=1;i<600/x;i++)ans+=f(i*x)*x;
		cout<<ans<<endl;
	}
}