#!/usr/bin/python

import urllib
import sys
import string

url = "http://www.midwestmarket.org/PTP/EOR/LMP/staging/ptpConsolidatedLMP.csv"
cpnode = sys.argv[1]
#val = sys.argv[2]

f = urllib.urlopen(url)

id1 = []
id2 = []
d = []
for l in f.readlines():
	i = string.split(string.strip(l), ',')
	if not id1:
		id1 = i
	if i[0] == 'Name':
		id2 = i
		pass

	if i[0] == cpnode:
		d = i
		break

f.close()

if id2 != ['Name', 'LMP', 'MLC', 'MCC', 'LMP', 'MLC', 'MCC', 'LMP', 'MLC', 'MCC']:
	sys.exit("Didn't get expected")

#print id1
#print id2
#print d

print float(i[1]) * 100
print float(i[7]) * 100
