#include <stdio.h>

int main() {
    int t, x;
    
    // Input the length of the track (t) and the distance the runner ran (x)
    printf("Enter the length of the track in meters (t): ");
    scanf("%d", &t);
    
    printf("Enter the distance the runner ran in meters (x): ");
    scanf("%d", &x);
    
    // Calculate the number of complete laps the runner ran
    int laps = x / t;
    
    // Calculate the remaining meters to complete the next lap
    int remainingMeters = x % t;
    
    // Output the result
    printf("The runner ran %d laps.\n", laps);
    printf("The runner needs %d more meters to complete the next lap.\n", t - remainingMeters);
    
    return 0;
}