#!/usr/bin/env python2
"""
    Converts everything on the command line to a completely urlencoded string (including alphabet)

    Copyright  Afrihost.com (PTY) Ltd 2005
    Original file by: Ed Pascoe <ed@pascoe.co.za>
"""


import urllib,sys

def allquote(line):
    out=[]
    for  i in line: out.append( "%"+hex(ord(i))[2:])
    return "".join(out)

out=[]
for i in sys.argv[1:]: out.append( allquote(i))
print "%20".join(out)    
