CCCPaste

Untitled

#include 
using namespace std;
int main()
{
    int n;
    cin >> n;
    int cost = 0;
    while(n % 4 != 0) {
        n += 1;
        cost += 9;
    }
    cout << cost << endl;
    
    return 0;
}