a = 50
b = 1000
c = 299
if a > b:
  if a > c:
    print("a is the greatest")
  else:
    print("c is the greatest")
elif b > a:
  if b > c:
    print("b is the greatest")
  else:
    print("c is the greatest")        

	
a = 150
b = 70
c = 9

if a > b and a > c:
  print("a is the greatest")
elif b > a and b > c:
  print("b is the greatest")
elif c > a and c > b:
  print("c is the greatest")