#include <iostream> using namespace std; int main(){ float c,d,a=0,b=0,e=0,f=0; int x=1,n,k; cin>>n>>k; while(x<=n){ if(x%k==0){ a=a+x; e++; }else{ b=b+x; f++; } x++; } c=a/e; d=b/f; printf("%.1f ",c); printf("%.1f",d); }