def convert_wo_prefix(string):
 factors = {'K': 1000, 'M': (1000 * 1000), 'G': ((1000 * 1000) * 1000), 'T': (((1000 * 1000) * 1000) * 1000), 'P': ((((1000 * 1000) * 1000) * 1000) * 1000), 'E': (((((1000 * 1000) * 1000) * 1000) * 1000) * 1000)}
 if (string == '-'):
  return (-1)
 for (f, fm) in factors.items():
  if string.endswith(f):
   number = float(string[:(-1)])
   number = (number * fm)
   return long(number)
 return long(string)

def convert_wo_prefix ( string ) : factors = { 'K' : 1000 , 'M' : ( 1000 * 1000 ) , 'G' : ( ( 1000 * 1000 ) * 1000 ) , 'T' : ( ( ( 1000 * 1000 ) * 1000 ) * 1000 ) , 'P' : ( ( ( ( 1000 * 1000 ) * 1000 ) * 1000 ) * 1000 ) , 'E' : ( ( ( ( ( 1000 * 1000 ) * 1000 ) * 1000 ) * 1000 ) * 1000 ) } if ( string == '-' ) : return ( - 1 ) for ( f , fm ) in factors . items ( ) : if string . endswith ( f ) : number = float ( string [ : ( - 1 ) ] ) number = ( number * fm ) return long ( number ) return long ( string )
take a string in the form 1234k .