Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)];

k = a[-1];
ans = "Yay!";

for i in range(n-1):
	for j in reversed(range(n-1)):
  		if k < a[i] - a[j]:
  			ans = ":( ";
  			break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)];

k = a[-1];
ans = "Yay!";

for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)];

k = a[-1];
ans = "Yay!";

for i in range(n-1):
  for j in reversed(range(n-1)):
  	if k < a[i] - a[j]:
      ans = ":( ";
      break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)];

k = a[-1];
ans = "Yay!";

for i in range(n-1):
  for j in reversed(range(n-1)):
  	if k < a[i] - a[j]:
      ans = ":( ";
      break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)];

k = a[-1];
ans = "Yay!";

for i in range(n-1):
	for j in reversed(range(n-1)):
  		if k < a[i] - a[j]:
  			ans = ":( ";
  			break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)]

k = a[-1];
ans = "Yay!";

for i in range(n-1):
	for j in reversed(range(n-1)):
  		if k < a[i] - a[j]:
  			ans = ":( ";
  			break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)]

k = a[-1];
ans = "Yay!";

for i in range(n-1):
  #print("n-i-1: " + str(n-i-1));
  if k < a[n-i-1] - a[i]:
    ans = ":( ";
    break;

return ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n = 6;
a = [input() for i in range(n)]

k = a[-1];
ans = "Yay!";

for i in range(n-1):
  #print("n-i-1: " + str(n-i-1));
  if k < a[n-i-1] - a[i]:
    ans = ":( ";
    break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
n =6;
a=[input() for i in range(n)]

k = a[-1];
ans = "Yay!";

for i in range(n-1):
	#print("n-i-1: " + str(n-i-1));
  	if k < a[n-i-1] - a[i]:
  		ans = ":( ";
  		break;

print ans;

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
N = input()
a = [input() for i in range(N)]
k = a[-1];

for i in range(len(N-1)):
  if k < a[len(N-i-1)] - a[i]:
    return ':( ';

return 'Yay!';

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;

Buggy python submission (verdict: Runtime Error):
N = input()
a = [input() for i in range(N)]
print(a);

Fixed submission:
n = 6;
a = [input() for i in range(n)];
 
k = a[-1];
ans = "Yay!";
 
for i in range(n-1):
  for j in reversed(range(n-1)):
    if k < a[i] - a[j]:
      ans = ":( ";
      break;
print ans;