#include <iostream>
#include <cmath>

int main()
{
    std::cout.precision(17);
    std::cout << std::nextafter(1., 0.) << std::endl;
    std::cout << std::nextafter(1., 2.) << std::endl;
}