main = interact $ show . (+316) . (*52) . subtract 1 . read