a = input ("Enter the amount of money: ")
b = 512 #one octocubed
c = 64 # one octosquared
d = 8 #one octo
e = 1 # penny

Octocubed = a/b #the number of octocubes needed
Octosquared = a%b/c #the number of octosquares needed
  #which is dividing the remainder by 64
Octo = ((a%b)%c)/d # the number of octos needed
  #which is dividing the remainder by 8
pe = (((a%b)%c)%d) # the number of pennies needed

print str(Octocubed), 'OctoCube(s),' , str(Octosquared), ' Octosquare(s),' , str(Octo), ' Octos(s), and', str(pe), 'pennie(s)'
