# Kelvin Ly
# 10/07/12
# Part A: find the number of pictures that can be stored on a device.

def main():
	storage = float(input("How many gigabyes can your thumb drive hold?\n"))
	length = int(input("What is the length of each picture, in pixels?\n"))
	width = int(input("What is the height of each picture, in pixels?\n"))

	# Convert gigabytes to bytes, and also change it to an int.
	# Note that is is probably more complicated than expected;
	# although it has no mention of it, it can almost be assumed that
	# the number of gigabytes will be an integer. However, this has been
	# coded assuming the user may enter a decimal value as well, which is
	# why the input used a float() and here is it converted back into
	# an integer.
	bytes = int( storage * 2**30)
	pictures = bytes // (length * width * 3)

	print("You can store up to", pictures, "pictures.")

main()

