#include <iostream>

int main()
{
    int r, f;
    std::cin >> r >> f;
    bool up = true;
    while(f >= r)
    {
        f -= r;
        up = !up;
    }
    if(f > r/2)
        up = !up;
    std::cout << (up ? "up" : "down") << std::endl;
}
