using System;
using static System.Console;
using System.Linq;
using System.Collections.Generic;

class Program
{
    static long NN => long.Parse(ReadLine());
    static void Main()
    {
        Solve();
    }
    static void Solve()
    {
        var a = NN;
        var b = NN;
        if (a == 1)
        {
            WriteLine(b);
        }
        else
        {
            WriteLine(- b / (a - 1));
        }
    }
}