Bachelor Arithmetic

Problem Number: 
12 114
Type of Problem: 
Problem Category: 
Input: 
Critical Input
0
Critical Input: 
1 1 1 2 1 2000000000 1000 500 1000 1000 1000 2000 1000 2000000000 2000000000 2000000000 0 0
Random Input: 
Problem Id: 
12114