using System;
public class Program
{
public static void Main()
int length = 36 - 1;
int spacing = 5;
int offset = ((length % spacing) - spacing) % spacing;
Console.WriteLine(offset);
}