#include <bits/stdc++.h>
using namespace std;
int main(){
int k,sum=0,end,cap,f,tank;
for(cin>>end>>cap>>f>>k,tank=cap;k–;f=end-f)
if(tank<f||cap<end-f) return cout<<-1,0;
else if(tank>=end+(k?end-f:0)) tank-=end;
else ++sum,tank=cap-(end-f);
cout<<sum;
}