#include int main(void){ // Your code here! long tmp; scanf("%ld",&tmp); tmp=tmp*52+264; printf("%ld",tmp); }