Question: Who is Stanisław Of Masovia's paternal grandfather?

Knowledge 1: Stanisław of Masovia
Stanisław of Masovia (pl: "Stanisław mazowiecki"; 17 May 1501 – 8 August 1524), was a Polish prince member of the House of Piast in the Masovian branch.He was a Duke of Czersk, Warsaw, Liw, Zakroczym and Nur during 1503-1524 (under regency until 1518) jointly with his brother.He was the eldest son of Konrad III the Red and his third wife Anna, a daughter of Mikolaj Radziwiłł "the Old", Voivod of Vilnius and the first Grand Chancellor of Lithuania. [SEP] Knowledge 2: Konrad III Rudy
Konrad III the Red(pl: "Konrad III Rudy"; 1447/48 – 28 October 1503), was a Polish prince member of the House of Piast in the Masovian branch.He was a duke of Czersk, Liw, Warsaw, Nur, Łomża, Ciechanów, Różan, Zakroczym and Wyszogród during 1454-1471 jointly with his brothers (under regency until 1462), Duke of Płock, Wizna, Płońsk and Zawkrze during 1462-1471, and after the division of the paternal domains in 1471, sole ruler over Czersk and Liw, over Wyszogród during 1474-1489 and again in 1495, over Zakroczym since 1484, over Nur since 1488 and over Warsaw since 1489.He was the third son of Bolesław IV of Warsaw and Barbara Olelkovna of Slutsk-Kapy, a Lithuanian princess, (granddaughter of Vladimir Olgerdovich).The premature death of his two older brothers during 1453-1454 left him as the eldest surviving son of his family.
Knowledge 1: Konrad III Rudy
Konrad III the Red(pl: "Konrad III Rudy"; 1447/48 – 28 October 1503), was a Polish prince member of the House of Piast in the Masovian branch.He was a duke of Czersk, Liw, Warsaw, Nur, Łomża, Ciechanów, Różan, Zakroczym and Wyszogród during 1454-1471 jointly with his brothers (under regency until 1462), Duke of Płock, Wizna, Płońsk and Zawkrze during 1462-1471, and after the division of the paternal domains in 1471, sole ruler over Czersk and Liw, over Wyszogród during 1474-1489 and again in 1495, over Zakroczym since 1484, over Nur since 1488 and over Warsaw since 1489.He was the third son of Bolesław IV of Warsaw and Barbara Olelkovna of Slutsk-Kapy, a Lithuanian princess, (granddaughter of Vladimir Olgerdovich).The premature death of his two older brothers during 1453-1454 left him as the eldest surviving son of his family. [SEP] Knowledge 2: Sophia of Masovia
Sophia of Masovia( 1497/1498- before 11 March 1543) was a Princess of Masovia, daughter of Konrad III Rudy, Duke of Masovia and his wife Anna Radziwiłł.She was a member of the House of Piast.On 17 September 1520 in Warsaw, Sophia was married by proxy to Stephen VII Báthory.On 17 January 1521, Sophia and her entourage went to Hungary, where in February there was a formal marriage.The couple had three children:Anna, Stephen and Klara; however, other sources claim that Klara was the couple's only child.Klara was engaged to Carl, Duke of Münsterberg, but died in 1535, before the marriage took place.After the death of Stephen in 1530, Sophia was married to Croatian magnate Louis Pekry.Sophia's second marriage was childless.She then died sometime before 11 March 1543.Sophia had three siblings: Stanislaus I of Masovia, Janusz III of Masovia and Anna of Masovia, both her brothers died childless and so Anna and Sophia were the last Masovian Piasts.Soon after Janusz's death, the Duchy of Masovia was annexed into the kingdom of Poland, despite resistance from some of the Masovian nobility.They tried to retain their independence and argued that the Duchy should be inherited by the female relatives( such as Anna or Sophia).The Polish king refused to recognize their demands.Anna was made titular Duchess of Masovia.
Knowledge 1: Stanisław of Masovia
Stanisław of Masovia (pl: "Stanisław mazowiecki"; 17 May 1501 – 8 August 1524), was a Polish prince member of the House of Piast in the Masovian branch.He was a Duke of Czersk, Warsaw, Liw, Zakroczym and Nur during 1503-1524 (under regency until 1518) jointly with his brother.He was the eldest son of Konrad III the Red and his third wife Anna, a daughter of Mikolaj Radziwiłł "the Old", Voivod of Vilnius and the first Grand Chancellor of Lithuania. [SEP] Knowledge 2: Kaya Alp
Kaya Alp was, according to Ottoman tradition, the son of Kızıl Buğa and the father of Suleyman Shah, who was, in turn, the grandfather of Ertuğrul, and the great grandfather of the Ottoman Empire founder, Osman I.

Answer: Bolesław IV of Warsaw