amount = int(raw_input("Input the amount in feet(1559 for 1,559): ")) total = amount furlongs = amount / 660 amount = amount - (furlongs * 660) chains = amount / 66 amount = amount - (chains * 66) yards = amount / 3 feet = amount - (yards * 3) print total, "feet is equal to:\n" print "\t" + str(furlongs) + " furlongs," print "\t" + str(chains) + " chains," print "\t" + str(yards) + " yards, and" print "\t" + str(feet) + " feet."