import random
t=int(input("Enter no of instances:"))
chances=["Head","Tail"]
head=0
for x in range(t):
p=random.choices(chances)[0]
if p=="Head":
head+=1
tail=t-head
print("No of Heads:{} Percentage {}%".format(head,head/t*100))
print("No of Tails:{} Percentage {}%".format(tail,tail/t*100))