#include<iostream> using namespace std; int main(){ double f; cin>>f; f=f/-17.22222+f%-17.22222; cout<<f; return 0; }