https://www.acmicpc.net/problem/1075
using System;
class Program
{
static void Main(string[] args) {
string s=Console.ReadLine();
string s1=Console.ReadLine();
int n=int.Parse(s);
int f=int.Parse(s1);
int a=n%100;
int b=n-a;
int c=b%f;
if(c==0) Console.Write("00");
else Console.Write("{0:D2}",(f-c)%100);
}
}