# Write a Python program that asks the user for a number 'x'.
# Then, randomly generate a number between 0 and 4 (inclusive)
# 'x' times, and count the number of times each number is generated.
# Print the percentage of the time you saw each number (divide each
# of the counts by 'x'). This is known as the 'relative frequency'.
from random import *
def main():
counts = [0, 0, 0, 0, 0]
x = int(input('Enter a number: '))
for i in range(x):
index = randint(0,4)
counts[index] += 1
for i in range(5):
counts[i] /= x
print(counts)
if __name__ == '__main__':
main()