#coin flipper
import random
tailcount = 0
headcount = 0
totalcount = 0
while totalcount != 100:
    totalcount += 1
    #print 'This is...', totalcount, 'Flip'
    x = random.randrange(2)
    if x == 0:
        headcount += 1
        #print 'The result is Head'
    elif x == 1:
        tailcount += 1
        #print 'The result is Tail'
print 'We had', headcount, 'Heads'
print 'And', tailcount, 'Tails'
print 'Coin was flipped' , totalcount, 'times'
raw_input('\n\nP')s here