#include <iostream>
#include <vector>
std::string r(int s, int t, int h, int n, std::vector<int> b) {
double d = 30;
bool bl = false, bu = false;
for (int i : b) {
if (i == 1 || i == 2) d *= 1.5;
else if (i == 3) d = 60;
else if (i == 4) bl = true;
}
int a = n / t;
double vd = a * 7 * d;
int vh = a / 3 * 15;
if (bl && vh >= 60 &&!bu) {
vh = 0;
bu = true;
}
if (vd >= h && vh < 60) return "Vatti!";
if (vd < h && vh >= 60) return "Game Over!";
return "Good!";
}
int main() {
int s, t, h, n;
std::cin >> s >> t >> h >> n;
std::vector<int> b(s);
for (int i = 0; i < s; i++) {
std::cin >> b[i];
}
std::cout << r(s, t, h, n, b) << std::endl;
return 0;
}样例:
样例 1
输入
plaintext
0 1 8000 200
输出
plaintext
Game Over!
样例 2
输入
plaintext
0 2 5000 300
输出
plaintext
Good!
样例 3
输入
plaintext
0 3 7000 100
输出
plaintext
Game Over!
样例 4
输入
plaintext
1 2 3500 500
3
输出
plaintext
Vatti!
样例 5
输入
plaintext
3 1 4000 600
1 2 3
输出
plaintext
Vatti!
样例 6
输入
plaintext
1 3 6000 400
4
输出
plaintext
Good!
样例 7
输入
plaintext
2 1 8500 300
1 4
输出
plaintext
Game Over!
样例 8
输入
plaintext
4 1 5500 700
1 2 3 4
输出
plaintext
Vatti!
样例 9
输入
plaintext
2 2 5200 450
1 2
输出
plaintext
Good!
样例 10
输入
plaintext
1 1 7500 150
2
输出
plaintext
Game Over!