

"""simple docstring"""





import csv

import tweepy

# Twitter API credentials
_a       =							''
_a       =							''
_a       =							''
_a       =							''




def   _A  (  UpperCamelCase_     :       str)	->						None:
   '''simple docstring'''


   __lowercase								=						tweepy.OAuthHandler(UpperCamelCase_,			UpperCamelCase_)
   auth.set_access_token(UpperCamelCase_,			UpperCamelCase_)
   __lowercase								=						tweepy.API(UpperCamelCase_)

   # initialize a list to hold all the tweepy Tweets
   __lowercase								=						[]

   # make initial request for most recent tweets (200 is the maximum allowed count)
   __lowercase								=						api.user_timeline(screen_name=UpperCamelCase_,			count=200)

   # save most recent tweets
   alltweets.extend(UpperCamelCase_)

   # save the id of the oldest tweet less one
   __lowercase								=						alltweets[-1].id - 1

   # keep grabbing tweets until there are no tweets left to grab
   while len(UpperCamelCase_) > 0:
      print(F"""getting tweets before {oldest}""")

      # all subsequent requests use the max_id param to prevent duplicates
      __lowercase								=						api.user_timeline(
          screen_name=UpperCamelCase_,			count=200,			max_id=UpperCamelCase_)

      # save most recent tweets
      alltweets.extend(UpperCamelCase_)

      # update the id of the oldest tweet less one
      __lowercase								=						alltweets[-1].id - 1

      print(F"""...{len(UpperCamelCase_)} tweets downloaded so far""")

   # transform the tweepy tweets into a 2D array that will populate the csv
   __lowercase								=						[[tweet.id_str, tweet.created_at, tweet.text] for tweet in alltweets]

   # write the csv
   with open(F"""new_{screen_name}_tweets.csv""",			"w") as f:
      __lowercase								=						csv.writer(UpperCamelCase_)
      writer.writerow(["id", "created_at", "text"])
      writer.writerows(UpperCamelCase_)


if __name__ == "__main__":
   # pass in the username of the account you want to download
   get_all_tweets('FirePing32')







"""simple docstring"""





from math import sqrt




def   _A  (  UpperCamelCase_     :       int)	->						int:
   '''simple docstring'''


   __lowercase								=						0
   for i in range(1,			int(sqrt(UpperCamelCase_) + 1)):
      if n % i == 0 and i != sqrt(UpperCamelCase_):
         total += i + n // i
      elif i == sqrt(UpperCamelCase_):
         total += i
   return total - n




def   _A  (  UpperCamelCase_     :       int = 10000)	->						int:
   '''simple docstring'''


   __lowercase								=						sum(
       i
       for i in range(1,			UpperCamelCase_)
       if sum_of_divisors(sum_of_divisors(UpperCamelCase_)) == i and sum_of_divisors(UpperCamelCase_) != i)
   return total


if __name__ == "__main__":
   print(solution(int(str(input()).strip())))




