---
# System prepended metadata

title: 飢餓

---

# 飢餓

```=C++
#include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int ans=0;
	if(n%5==0){
		ans=500;
	}
	else if(n%2==0){
		ans=200;
	}
	else{
		ans=100;
	}	

	if(n>=123){
		ans=ans+30;
	}
	cout<<ans;
    
    return 0;
}

```