#include using namespace std; int main() { long a,b,c,d,n; cin>>a>>b>>c>>d>>n; assert(a<=b); assert(c<=d); assert(a<=1e9); assert(a>=-1e9); assert(b<=1e9); assert(b>=-1e9); assert(c<=1e9); assert(c>=-1e9); assert(d<=1e9); assert(d>=-1e9); assert(n>=0); assert(n<=1e18); }