#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;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CgppbnQgbWFpbigpCnsKICAgIHN0ZDo6Y291dC5wcmVjaXNpb24oMTcpOwogICAgc3RkOjpjb3V0IDw8IHN0ZDo6bmV4dGFmdGVyKDEuLCAwLikgPDwgc3RkOjplbmRsOwogICAgc3RkOjpjb3V0IDw8IHN0ZDo6bmV4dGFmdGVyKDEuLCAyLikgPDwgc3RkOjplbmRsOwp9