#!/usr/bin/python
'word to address'
import sys
def w2a(word):
 return '%x' % (int(word, 16) << 2)
if __name__ == '__main__':
 print w2a(sys.argv[1])
