#include void main(){ long n,res; scanf("%d",&n); res = 264+n*52; printf("%d",res); }