n,m=[[543339720,225058681],[93222358,38613965],[38613965,15994428],[15994428,6625109],[6625109,2744210],[1136689,470832],[470832,195025],[195025,80782],[33461,13860],[13860,5741],[5741,2378],[985,408],[408,169],[169,70],[70,29],[12,5],[5,2],[2,1]][-gets.to_i] $><<[n*n-m*m,2*n*m,n*n+m*m].sort*?\s