The task is to generate the correct answer for a given math problem.

Input: Consider Input: Problem: a palindrome is a number that reads the same front - to - back as it does back - to - front ( e . g . 202 , 575 , 1991 , etc . ) p is the smallest integer greater than 500 that is both a prime and a palindrome . what is the sum of the digits of p ?

Output: 4


Input: Consider Input: Problem: a snooker tournament charges $ 45.00 for vip seats and $ 20.00 for general admission ( “ regular ” seats ) . on a certain night , a total of 320 tickets were sold , for a total cost of $ 7500 . how many fewer tickets were sold that night for vip seats than for general admission seats ?

Output: 276


Input: Consider Input: Problem: the population of a bacteria colony doubles every day . if it was started 10 days ago with 2 bacteria and each bacteria lives for 12 days , how large is the colony today ?


Output: 2048