#include<stdio.h>
int main(){
    scanf("%f %f",&a,&b);
    printf("%.2f km/h\n",a/b);
    printf("%.2f m/s",a/b*1000/3600);
}