OIAHSDFZ 模拟赛 偏题DescriptionInput & OutputSample Input1 2 3 100 6 Sample Output1 82 Constraint对于100%的数据,0 ≤ n ≤ 10^9 ,1 ≤ M ≤ 10^9 ,1 ≤ F_0 ≤ F_1 ≤ 10^6Solution