# Arup Guha
# 5/31/2013
# Program that calculates

def main():

    # Get data.
    halflife = int(input("What is the half-life of your element?\n"))
    numatoms = int(input("How many atoms of your element are there now?\n"))

    # Print chart header.
    print("Year\tNumber of Atoms Left")
    print("----\t--------------------")

    # Print until there are no more atoms.
    year = 0
    while numatoms > 0:

        print(str(year)+"\t"+str(numatoms))
        numatoms = numatoms//2
        year = year + halflife

main()
