Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <string>
  4. #include <cmath>
  5. using namespace std;
  6. int main(){
  7. int n;
  8. cin >> n;
  9. if(n==0){
  10. cout << "1";
  11. }
  12. if(n==1) cout << "0";
  13. else if(n%2==1) cout << "4";
  14. for(int i=0;i<n/2;i++){
  15. cout << "8";
  16. }
  17. cout << endl;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement