Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <algorithm>
- #include <string>
- #include <cmath>
- using namespace std;
- int main(){
- int n;
- cin >> n;
- if(n==0){
- cout << "1";
- return 0;
- }
- if(n==1) cout << "0";
- else if(n%2==1) cout << "4";
- for(int i=0;i<n/2;i++){
- cout << "8";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement