n = input() print 316 + n*52