#include main(){ int N; scanf("%d",&N); printf("%lld",264+N*52LL); }