using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
class MainClass {
static void Main() {
var a = new Uri("https://google.com");
var b = new Uri("https://google.com/");
var c = new Uri("https://google.com/fr/query");
var d = new Uri("https://google.com/fr/query/");
Console.WriteLine(a + "bah");
Console.WriteLine(a + "/bah");
Console.WriteLine(b + "bah");
Console.WriteLine(b + "/bah");
Console.WriteLine(c + "bah");
Console.WriteLine(c + "/bah");
Console.WriteLine(d + "bah");
Console.WriteLine(d + "/bah");
Console.WriteLine(new Uri(a, "bah"));
Console.WriteLine(new Uri(a, "/bah"));
Console.WriteLine(new Uri(b, "bah"));
Console.WriteLine(new Uri(b, "/bah"));
Console.WriteLine(new Uri(c, "bah"));
Console.WriteLine(new Uri(c, "/bah"));
Console.WriteLine(new Uri(d, "bah"));
Console.WriteLine(new Uri(d, "/bah"));
}
}