#include <iostream>
#include <cmath>
using namespace std;
int main() {
cout << remainder(11.0, 3.0) << "\n";
cout << remainder(16.0f, 4.0f) << "\n";
cout << remainder(31.0, 2.5) << "\n";
return 0;
}