#include using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int n; cin>>n; string s=to_string(n); Int p=1,a=0; for(Int i=s.size()-1;i>=0;i--){ if(s[i]=='7') a+=p; p*=10; } cout<