#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
  cout<<(int)(2021.0*19/47/27+2021.0*28/43/27)<<endl;
}