Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
14 kB
213
Indexable
Never
##
/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
	}
	#include <bits/stdc++.h>
using namespace std;

#define int long long
#define F(i, a, b) for (int i = a; i <= b; i++)
int M = 1000000007;

/*
No tch is ever allowed; energy waste kore and Bad; so enitirely never.
No pen*s vid; No seal vid
*/  

int val[1001][1001];
int n,k;
int dp(int cur,int rem)
{
    if(cur<1 || cur>k || rem<0 || rem>n)return 0;
    if(cur==1 || rem==0)return 1;

    if(val[cur][rem]==-1)
    {
        int ans=0;
        ans+=dp(cur,rem-1);
        ans%=M;
        ans+=dp(cur-1,n-rem);
        ans%=M;
        val[cur][rem]=ans;
    }

    return val[cur][rem];
    
}

void solve()
{
    cin>>n>>k;

    F(i,0,k)F(j,0,n)val[i][j]=-1;

    cout<<dp(k,n);
    cout<<"\n";
    /*
   
    ##
Victoria's Secret Fashion Show
film1k.com/page/32 does not mention the word 	
Revista Se*y
erome.com/search?q=Diamond+BRZ 
Gatapop
novamovie.net/genre/erotic/page/9 
2umovies.pro/ 
watchomovies.click/ 

##
https://www.onscreens.me/videos
https://www.camwhoresbay.com/
https://webcamrips.tv/
https://rechub.tv/?page=6
##
sara:
mega.nz/folder/TOYVRZgb#xWSey23T1CrHSuVGGCctZA/folder/HagCHDII

victor:
mega.nz/folder/Le4lwYyZ#ICKyjJEwR4YSG7dEQ4SAbA/folder/iCpFRZbZ

dee:
mega.nz/folder/wSNnUB5Q#rhrsitgdi3xSs94HcCSLNA

##
v1v1: mega.nz/folder/dtsEgTbJ#DS19IbU85dkw_PCxG3bwEQ

acpent: mega.nz/folder/4L1wiCwQ#xyhQ9UzOslpFI7bqLM1qsA/folder/8b1iSawQ

oreo: mega.nz/folder/hTsUBZyI#56HEqVUfK0Np2RZyZCyAkg/folder/pCthHabY

ccnt: mega.nz/folder/N24UAIrY#27bGIWDXpqq2V3l97w5yuA
partona: mega.nz/folder/hrgC2QCY#JWVG5Dtbp6-VPcHzVYCxkg/folder/NmRX0SaI
##

AP: mega.nz/folder/1AU0WL6D#B_qFLX8o8tsCSaNq_1t_8g/folder/BFMSXByL
kaya : mega.nz/folder/Fw8xhJbQ#RLW7J2czKg9E79fArZuPyw/folder/188EWQYJ
##

violet: mega.nz/folder/U4QHhaKb#tVpr7P9-aNbKoCiRVA3DwQ/folder/YhwnDYiS
IL: mega.nz/folder/hiokCACA#55m1HKRfyPm4t9XU1E1M1A/folder/R3ISCDLK
SKYLERLO: mega.nz/folder/kwMBHBST#X3xKohGwu7l3R34wzIGjuA

vero perasso: mega.nz/folder/ehoTAAwB#LYhpiOB-rHW_wuWZ1on5iw/folder/rlxjVSoI 

LiyaSilver: mega.nz/folder/g1JXjTSY#JmKQPQCHQGtAKCuDyaC6vw/folder/1pxzBQpT
##

ariella ferera: mega.nz/folder/nfAnkIiJ#ScvJbuAK3m5v0ByCmrwXnQ/folder/zPJBQKCB

adora18: mega.nz/folder/VyhGTYRJ#jfstxXJwXr9bfPx_7ixiog/folder/g7xC0Aab
caylin: mega.nz/folder/BKExTQSQ#rU5TDrJY2-GuoJUqxxWXpA/folder/FGM0xTba


##
Hardforeva: mega.nz/folder/089iyTpa#vJWFARwZYZNJ7jEAO8mgYg
lana: mega.nz/folder/eIA1RYbB#2yD4viXTnvKxEpy-5TJrpQ/folder/vRhAxKDY
vanessa: mega.nz/folder/LGRElZZB#uXCzMt08pEA1-w7yMJOkVA

Carle: mega.nz/folder/ZosijIzZ#n1zI2zakuLVctfVII3aVSw
heidi: mega.nz/folder/Am5E2ZrJ#7CgHEHdYFW1Z4Zv402NG3w/folder/tqoGRb5I
bbl: mega.nz/folder/q3BxTSBA#ROcAvoJZTLqt8Z_Rob8Htw/folder/TmAjiC7C
PB: mega.nz/folder/hlsnmSpC#uqT-0bKH8TjuGbcwYeOrXw/folder/s1kzXQLS
Nym: mega.nz/folder/gzQx3BhT#D3eE8X5vm7XWmKNUWdy80g/folder/13Bn0IBJ

p7oh7: mega.nz/folder/Nb0k2Q5T#IG2Mb8cWvgctgn-pa0gZZw/folder/5XEy2ByJ
bank: mega.nz/folder/p6ZkGC7D#xVLFdUou46ZX9AEwiakXZQ/folder/IzhniBRR

jupiter: mega.nz/folder/kKcwzSJY#gUL9m0hewpbDvVy1hGsX6g/folder/VK1lRCYb

##
/pandamovies.org/movies/page/5
9xbuddy.xyz/en-1bd
abellalist.com/
##
bank: mega.nz/folder/MaknHDJL#-C2JAJCyz3uNrY59IeG8bQ/folder/ISlm0bbK

mati: mega.nz/folder/OCRzUAIJ#5RXd1Z-EmZri7JbXeRc2sQ/folder/CTY3mCJK

toni-camille:  mega.nz/folder/PMgRlITb#Ifhk5J9iM1Wjfpk-q7DrnQ/folder/rVhGHRxI

shoirolul: mega.nz/folder/JC1mWLba#b6N9YKofwhdX8B5nvonx6g/folder/ZGkVSTaT

OM: mega.nz/folder/Hoxk3aLD#1bHYOJgxI0qugjUik1SaZg/folder/Wo43mY6R

NAC: mega.nz/folder/4ot30SYR#Iwg--IaN6_5USDcagoyXlA/folder/1hszkSKB


ashprincess: mega.nz/folder/oTdkAaTa#DEJKZrRPpHOuHyTsZnE3sw/folder/BOkE2RLA

alaskafornia: mega.nz/folder/VjAwXD6a#CltJAZ8OSRSRZWwBcUnfaw/folder/V3IQBR7K

kimberly: mega.nz/folder/oQUyDRaJ#LzNuovsh6VUC1HEIjpG-KQ

lana: mega.nz/folder/v2Y0wRDY#C6mcGIL8QQ4FBSwjxGs7PQ/folder/HnoUGAiZ

##
zoe rena: mega.nz/folder/WEgWASrD#iof8pj5SCgIGx_DcNMdDmQ/folder/PRhmzArI

celine: mega.nz/folder/tL900BTR#azMV3VU-oq61dm0dz7RckA/folder/gftSyBQY
SKYLERLO : mega.nz/folder/kwMBHBST#X3xKohGwu7l3R34wzIGjuA

Giuliana : mega.nz/folder/0SVjxTbB#jHIcbz97Ytp5nB8d4USSqA

paytonpresl : mega.nz/folder/cyIw0YQY#uflsUDFDp5HUeLW7z1vVGA/folder/kywVUA6b

KileyLynn : mega.nz/folder/1vYhyAID#dCo0VG2XLUsRRFJo9-yaog/folder/Ijwx3SQD

Tabares : mega.nz/folder/58VD0L6D#J2ZT53E-Gltk6fUDIvO5-g


cherrishluluu : mega.nz/folder/mnIUDZIS#Jqf3jfF_6-KrZTk58ust8w/folder/yypDTJBQ

jazvip: mega.nz/folder/kCdEnZKY#LD3LP2l010siwHJhqaCHmQ/folder/UDtDxAwJ

IamHely : mega.nz/folder/xWFS1SaY#DMWt6Ju3nuXY18FrMzZvdw/folder/4P9iGIhR

Skylar : mega.nz/folder/S1skWYba#kvNLqNocuZ9pvJ4a0xpv8Q/folder/OhkWAYrD

CuteGeekie : mega.nz/folder/MTMzTbLC#PbF_lzi4depQ9V2bxfeS2g

BabyLaur : mega.nz/folder/FUx3nQ5I#5Hp8ySIJUkMiTqWDWd1vuA

staceysara: mega.nz/folder/jlkxhCLA#cLGeHmRUkg63Eh7CnkbBJg/folder/64tG0KyL

natalie: mega.nz/folder/bAF0XIrA#o7PUm9yiCDN278pvEf7Szw/folder/XcNmlTjA








##
centino: mega.nz/folder/rVFVzRpQ#MrwSI11utPxtuDPTYWNy_g

murake: mega.nz/folder/kSdGUIoI#3KnFhAdtHWXyFLB6yZ3omg/folder/kL1H0bIZ

benz: mega.nz/folder/0gE0CQya#r-Pvjcpf2YzellpXvVzevA
skyiiah: mega.nz/folder/ok0X3AwS#pxQW_1hVM9DZOeNvmI8SNA/folder/x99CjKIZ
LP: mega.nz/folder/rXAR3CaT#ltEA-M_yIY6dzjVaONw0RA/folder/CWBRBSjQ

##
abelli: mega.nz/folder/LKJzmYrR#9fHBpMKy6NgxeK2V4Eadtw

natalie: mega.nz/folder/gx4HmBZb#DQryxG69MklDu6c_CtE8eA/folder/ZtohXCqb

jus7: mega.nz/folder/pMtVmC6C#iCvQRFUm9HZYZpttOePtwg/folder/gB9SBaJC

Am0urnth: mega.nz/folder/pD1wDBga#ACT-aG3aNXwu0IM7mdkcTA

Lia: mega.nz/folder/LjJHDKST#6xW1q29E-HMQcgAOI3JTGA/folder/LjJHnSJB

princess ari: mega.nz/folder/xZlAVBTZ#nhh5Kku1kN80lxsX-P6clg/folder/hEljUaQY

ojeda : mega.nz/folder/rxliSDZL#o0e98Dr37_p82DMNVc6fLw

kristenlanae: mega.nz/folder/KsECmIiI#8Jhbbi-zwhLUL32RZsJXTg


dee 2: mega.nz/folder/4zoyjLIQ#eBSIi0o9VSiXS9eC_QtYbA/folder/9nxEyDbI
kokokay: mega.nz/folder/Mw0WHA6I#879wWGTBQjYGVic_TZ2lSA/folder/xtEEBBpA

##

sophiarosemarie:  mega.nz/folder/EUxEFAYa#bylMkVnTsek9t6l0lMYbVg

kaylakapoor: mega.nz/folder/hX8gFRDQ#K3e3BIQCFOj_i-NFP4uGlw/folder/wH1i1Z7I
mack roni: mega.nz/folder/Y0NyTTwK#__x9Tv1BrjEI5S7zQ5RZEQ/folder/Us9BkKyA



##

white: mega.nz/folder/rxwDXa5D#Fyt3F033I5wLDnciTspr5w/folder/fo5GCKAa
Goddess Angelina: mega.nz/folder/XXpg1LjA#4TPxg-iDbwEaWyfg_7yzZQ/folder/3SxG3LDA

Tabares:  mega.nz/folder/58VD0L6D#J2ZT53E-Gltk6fUDIvO5-g

AM: mega.nz/folder/gaFgQBCS#DIuSqDujFPc31jVO9eJ3Mw/folder/YWdSDL6S

Vanessy: mega.nz/folder/QpQUhKbC#TSwOQf2UcWtMPyxwFcNsuA

Lee: mega.nz/folder/lwA13QCB#yQdZ3CMjznPrqax6joo81w/folder/Jg5RlIpZ
ChynnaCastro: mega.nz/folder/N0UTTSKR#ZK35DE61P1GhssnUVJhoDg



BabyLaur: mega.nz/folder/FUx3nQ5I#5Hp8ySIJUkMiTqWDWd1vuA/folder/BRgj1S6D



##

white2: mega.nz/folder/9l0wWY4J#_EKcOuMfu-RqQOBd3xbVaA

kelly: mega.nz/folder/Xx53BCjT#CwHuSgwcRvdZTbOrOSvacA/folder/Hh4wzYZK

es: mega.nz/folder/di4UhLTK#M-pHI2eapQPK5ucmAeTVhw/folder/tzBUTTrT

rose: mega.nz/folder/tkpGkJDR#56MLPLYiMC8tzWdFzTNs4A/folder/R9pUXL5Y
elle green: mega.nz/folder/zboC3LBA#70Ej5rF9O7UEuddsAecZzw/folder/eKpn2aRR


##


dan:
mega.nz/folder/7Zwj1CJT#Tjkn02NhZRKHdfvX-PSDpw/folder/rMokSDAC

www.mediafire.com/folder/29aqi0kvuu3ey/elylabella


mega.nz/folder/wUFSiZhR#pnxQM6MaUVSRzeFT8dGltw


##
Angel:
mega.nz/folder/uJJwlSab#oun9ohiDKrQ5bo64ahTUYA/folder/3MpiUYIY
lily:
mega.nz/folder/VRRHwAzK#iaLxhocyf58EX4aH3Y6sEA/folder/hUgSEICI

##
Romi:
mega.nz/folder/KPBlkahQ#2-XEggNSvlmT3EXdSEz0nQ/folder/2C4jmCTQ

Lopez:
mega.nz/folder/HaYWBIrB#2aigMGB2512dFXSLnTdD5g
##


##

Steffy:

mega.nz/folder/ZNkC1DBD#I1x15VmddUD_5smLjHbXeQ/folder/sN1RQaQC


karter:
mega.nz/folder/YmYRHKAQ#6l6m6D0lHpLhLwmBS9hI5g/folder/Z3RnmK7Z
mega.nz/folder/FUtnGaxK#57IMOLAkhuMkPv0jEycQcQ/folder/RdUxxABD


pandora:
mega.nz/folder/6jAQUTjB#jKX7yTx9Z2nN585-xersGw/folder/qjgXCZCJ
mega.nz/folder/IZgVgKrb#e_pygxnMIw_AnbN4B8_U4Q/folder/AAxzUABL


##

alyx:
mega.nz/folder/r50SVBRZ#VJIhHmnKapHJJcUl5igICA/folder/qsUmUDLA

braden
mega.nz/folder/ne41XLjR#L6D_TMsPouyxKQOHDWpD8g/folder/2H4WUBwS

mega.nz/folder/kHsxWTyb#MLLv-hoxxMd3s9RjDJkUlQ/folder/YDNBzSgT
mega.nz/folder/bbxkWLDB#3F_eb1SbVUdyaEP1t3vhJw/folder/zDpgBbbS	


##
steffy:
mega.nz/folder/Ay50DThA#p03gXRJ1ztzpB-mndLWdFg

lova:
mega.nz/folder/bbxkWLDB#3F_eb1SbVUdyaEP1t3vhJw



keishly: NOT good
mega.nz/folder/O7wwyBpQ#fk6aT_7yUp1DGKivhlyhfQ/folder/3joUFbZR

sunbae:
mega.nz/folder/yEhEnYra#prXZ3aU_Ms5jY1ql_Tibbg/folder/fI5E1STI

amanda nicole:
mega.nz/folder/Rsoj1CZR#Rm06mH5qKGG95mwJRDo3gQ


connell:
mega.nz/folder/5XNFiATA#wOq4hx5zJ1JUtYkKrDUGGQ/folder/hC1TXY7K


julia R: 
mega.nz/folder/wF0WTIgL#lpI4CTssLv5RETp9SF8XTw/folder/UNlkhQxJ

LP:
mega.nz/folder/ShNCWRRT#2PcWerFYd01JDdhUTs_auA/folder/G1VSVJCT


brittaniya:
mega.nz/folder/cHtWyDyJ#kolYD-LKX_ocZuHEEe_0Vw/folder/ZSsGkRga

mega.nz/folder/D14kVZhJ#amDB_Ew4RhyDuSXEo1qmyQ

CF:
mega.nz/folder/5dlyiYob#i7Mjno5PZaEQKrmZf1QlSw/folder/JZkUlYBC


KL:
mega.nz/folder/jtITzYxR#kMSEGWqhYdei-9AKxU0XrQ/folder/Sx51ybYB


megnut:
mega.nz/folder/mh0XTYDZ#RhH80QsPeMvw64VwwF2rOw/folder/jo8QEDwK
Paola Saulino
mega.nz/folder/49VhHYYb#J1eNskP06PpEQizK9zu28A/folder/x0EWFRqZ

dahyn11:
mega.nz/folder/tiBDXAaR#YwkqDu_NnBu0p5YKWedyCQ/folder/cvZVjCLA

alinarose9:
mega.nz/folder/XbwgETZS#YBqFTkI92PtRfaBET3I0vg

trevajo:
mega.nz/folder/dE5X0bhJ#G7GDCOfv9Eax0D2hZXBTNA/folder/cFx3mR6C

fandy:
mega.nz/folder/7XA3hDjJ#4vzLMHHrCtGhEI9QRS_RCg/folder/GPoykBCT

lena:
mega.nz/folder/TlwXFDyQ#iNrri6TVvsrLHIaD08yj-A/folder/XohhFaLa

Patrisia good:
mega.nz/folder/4rBUGKTS#X4Ue96VP_x4V_OXdeSFMfQ/folder/AvASXbRK

magicaldamage:
mega.nz/folder/RYYESYBa#zhMjAJr43R3L_KuP4IQsvQ/folder/VEpQVZRL

Jem Wolfie:
mega.nz/folder/kJh3kQTK#YL_caH5RwDClWz0TkZBQaw

Lucero:
mega.nz/folder/XVNESY6A#MiGpiciotnVPVMRQytpitA
$nøwßµnnyEmıly:
mega.nz/folder/gc52gaxZ#ixB5464I5lJ50cme_oP4fA/folder/lUYkhDZS


alyx:
mega.nz/folder/bwg0XZCS#a5dL1dR892kxvV3Fz6UqiQ/folder/qwo0CZyI

Llly Evns:
mega.nz/folder/fMA2wRSJ#g01OptndUmdCR5Swbw7BMg/folder/6BxTHSQC

Nacre Victoire:
mega.nz/folder/nlFQxRRY#lu1zXG3l03kSd_sqskbXdg/folder/e98DmC4a

Bambidoe:
mega.nz/folder/SiQDxDyL#fglX67-mQR_dY0P7cKZ7nw/folder/3yhHFLib
##

sdee:
mega.nz/folder/YJkTCIRb#cI-4CW2tsa3-gJntEijMHw
##


##
random name:
mega.nz/folder/SmAnSYgL#fb1mPG_4PD9vOCkUPjccyw/folder/7jJ3GYhT

mega.nz/folder/fix1XbCa#8w4HXYIiZUJi1LHy2is1yw

mega.nz/folder/bAF0XIrA#o7PUm9yiCDN278pvEf7Szw/folder/XcNmlTjA

mega.nz/folder/RVZVBQBT#Wt6iU_93eGHakfrE8nU4wA/folder/ZRBF0A6R

mega.nz/folder/bAF0XIrA#o7PUm9yiCDN278pvEf7Szw/folder/XcNmlTjA

mega.nz/folder/bwg0XZCS#a5dL1dR892kxvV3Fz6UqiQ/folder/qwo0CZyI


##




dropnudes .com
Demi rose mawby
Jodie gasson

##

Vanessy: mega.nz/folder/QpQUhKbC#TSwOQf2UcWtMPyxwFcNsuA

ang whi: mega.nz/folder/rxwDXa5D#Fyt3F033I5wLDnciTspr5w/folder/fo5GCKAa 

SureCakes: mega.nz/folder/KBZhWZza#A4iQrZ3FNrLacjlHF23nYw
##

karter: mega.nz/folder/YmYRHKAQ#6l6m6D0lHpLhLwmBS9hI5g/folder/xvZXWCID


##
Camilla: mega.nz/folder/jbBTVIwB#Cq7rxzwLlZayZ7ilnmexXA 

##
Marina Mui:
mega.nz/folder/exVGGbRL#ozSeAz_rpw3wcGn-7fLbrA/folder/axFj0QDY

##
Aylen:
mega.nz/folder/DFJ3BDQK#hpWyaNtOHaLQyd_fq2vU5g/folder/XQwjAZRD


##
G. clarke: mega.nz/folder/KPhmACrQ#4Y6xyp40e4b7yx6pBzi3Mw/folder/qPg02ZgZ
ste paola: mega.nz/folder/cZg3gaQY#_rQZb_YijjPUtCqEl6Vt3A
Krissylynn: mega.nz/folder/rKp0jAQT#qs9EQABUU9ooreNaU9Az0w/folder/TOxl3RZZ
jazzvip: mega.nz/folder/kCdEnZKY#LD3LP2l010siwHJhqaCHmQ/folder/UDtDxAwJ


romi rain: mega.nz/folder/12hDVQyY#zYyAnrD_65X8bX3gtSvPUQ/folder/VqRgyDzR

Luli Garcia: mega.nz/folder/0ZonXDwa#yV645KTLqxJemObPRz1Y9A

kokokay: mega.nz/folder/tsFGjZjJ#dGbx-8dXqROnlIZ4F-QqiA

lily evns: mega.nz/folder/XfQjVD7Y#jeJCQNa5spAVW8REFF3_7g/folder/vXhWDZSR
##
Nacre Victoire:
mega.nz/folder/nlFQxRRY#lu1zXG3l03kSd_sqskbXdg/folder/e98DmC4a

##
Tiffany Rae:
mega.nz/folder/otNGRB4C#7ANoL9_lqZGhVYbBko9nFQ/folder/90l1QBxa


##
vutton:
mega.nz/folder/TYx2yART#EQ1251aJaFjqcpykEdEY0A/folder/uYxXATbL

##
ariabliss: not good
##
nicolebun: mega.nz/folder/1kZRwSoI#l2dzYQOrfzHbF5mTcknXIw/folder/lx5jkCRL


##
oreob4by: mega.nz/folder/yJZxxbpL#mm6KrW7jVh0xJgPKW4rNyA

amanda braden: mega.nz/folder/rRwUDADK#BHmMgSPZx7pwmpNgc7FRdw/folder/yBpmmapY

libbus: mega.nz/folder/7FQxTTjR#Xm5rlCUfF6ZNyFEvU11AuA/folder/3YxTjBiT

bronze: mega.nz/folder/510hDA4K#pDFdHB-fY7yz6TDQaiU9AA/folder/ZtkTzZLI

payton presl: mega.nz/folder/eERB2AID#zZo0a-Kwz7eaNzwslVdxNQ/folder/2YwiHSAA

madison ivy: mega.nz/folder/t98CzJgY#eOL3Ob3nw1_NHGBVyOB7ig/folder/ds0ATIbT

sandra: mega.nz/folder/RC9QlBQA#cNYXgZK2ywHBVZDyZrjAAw/folder/NeNSSbCJ

KaylenWard : mega.nz/folder/EOETQBwT#waEdXMVWwpdzs01jKh6WSw/folder/4K0H1YRa

celina smith: mega.nz/folder/gRhBhDwT#mNR_W8OYMth7ogkTON77jw/folder/YNg0yRCT



##

BigNino100: mega.nz/folder/t48U3JxJ#rv2HlE6tk1lBVl2KiiBcnw
m@timarr0ni: mega.nz/folder/OCRzUAIJ#5RXd1Z-EmZri7JbXeRc2sQ
magicaldamage: mega.nz/folder/RYYESYBa#zhMjAJr43R3L_KuP4IQsvQ/folder/VEpQVZRL
mega.nz/folder/y9x0FQ6a#vGNubDLv-TO6mcEDVpkSsA/folder/KloG3QaT




##
darla:
mega.nz/folder/eJYRQYhQ#wiRSSCiHbFGXIt6CJz8IuQ/folder/Xdwg3IoC
##
kamperi:
mega.nz/folder/m2oXQYCR#fzQxCovasvcw-U6SLgj0Tg/folder/Cu5UnYIL
##







##
	 */
	
#include <iostream>
using namespace std;
const int inf=0x7FFFFFFF ;// for returning garbage value;

class Stack
{
    int *arra;
    int Size;
    int memoryAllocated;
public:
    Stack(int);
    ~Stack();
    Stack (const Stack &);// copy constructor
    int size();
    int top();
    void push(int x);// integer pusher function
    void push(int *,int );// arra pusher function
    void push(Stack );// stack pusher function
    int pop();
    void resize();//resize function
    void print();
    double similarity(Stack);
};



	
	    

    
}

signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);

    int _t=1;
    cin>>_t;
    for (int i=1;i<=_t;i++)
    {
        solve();
    }
    return 0;
}
}