#include<bits/stdc++.h> using namespace std; int main(){ int x,tot=0; cin>>x; for(int i=0;i<=x;i++){ if(x+i==2025){ cout<<i; tot++; break; } } if(tot==0){ cout<<"-1"; } return 0; }