text: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  
  '''
  2100. Wedding Dinner
  Time limit: 1.0 second
  Memory limit: 64 MB
  
  [Description]
  Marshall and Lily are getting married! They sent wedding invitations to all
  their friends. Each invitation can be noted +one — it means that the friend
  wants to come with his non-invited partner. All friends have responded to
  the invitations, and now Lily wants to know for how many guests to organize
  a dinner in a restaurant. All guests will sit at one large table. Marshall
  is very superstitious, so if there will be exactly 13 people at the table
  (including Marshall and Lily), then Lily will ask restaurant staff to put a
  dummy and serve it along with all. How much will young couple spend on this
  dinner, if the service of one person (or dummy) is worth $100?
  
  [Input]
  The first line contains a single integer n that is a number of friends of
  Marshall and Lily, that have responded to the invitations (1 ≤ n ≤ 20).
  The next n lines describe the responses. Each response has the form name[+one].
  This is the name of the friend and +one if the friend has chosen this option.
  It is guaranteed that the length of each name does not exceed 20, and each
  name consists of Latin letters.
  
  [Output]
  Output the cost of dinner in dollars.
  '''
  
  import sys;
  import math;
  
  def calc():
      n = int(sys.stdin.readline())
      people = 2
      while (n > 0):
          n = n - 1
          friend = sys.stdin.readline().strip('\r\n')
          if (friend.endswith('+one')):
              people = people + 2
          else:
              people = people + 1
  
      if (people == 13):
          people = 14
  
      print (people * 100)
  
  if __name__ == '__main__':
      calc()
  
  