#include<bits/stdc++.h>
using namespace std;
typedef long long ll;

int main(){
	ll n,x,t;
	cin>>n>>x>>t;
	
	ll k=n/x,r=n%x;
	
	if(r>0)r=1;
	
    cout<<k*t+r*t;
	

}
#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define ll long long
#define P pair<ll,ll>
#define all(v) (v).begin(),(v).end()

const ll mod = 1e9+7;
const ll INF = 1e18;
const double pi = acos(-1.0);


int main(void)
{
    ll a,b,c; cin>>a>>b>>c;
    if(a<c && c<b || b<c && c<a) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}