#include <stdio.h>c;main(a){scanf("%d%c",&a,&c);printf("%lld",a*1ull<<10*(((c-9)&7)/2));}
42
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!