>>311
import webbrowser
from urllib import quote

print 'search:',
word = raw_input()

if word.startswith('w '):
    url = 'http://ja.wikipedia.org/wiki/Special:Search?search=%s'
    word = word[2:]
elif word.startswith('y '):
    url = 'http://jp.youtube.com/results?search_query=%s'
    word = word[2:]
else:
    url = 'http://www.google.co.jp/search?hl=ja&q=%s'

webbrowser.open(url % quote(word))