def II() -> int : return int(input()) def MI() -> int : return map(int, input().split()) def TI() -> tuple[int] : return tuple(MI()) def LI() -> list[int] : return list(MI()) class fenwick_tree(): n=1 data=[0 for i in range(n)] def __init__(self,N): self.n=N self.data=[0 for i in range(N)] def add(self,p,x): assert 0<=p0): s+=self.data[r-1] r-=r&-r return s mod = 998244353 n,q,l = MI() a = LI() cnt = fenwick_tree(2*10**5+1) scnt = fenwick_tree(2*10**5+1) for i in range(n): cnt.add(a[i],1) scnt.add(a[i],a[i]) f = 0 for i in range(q): qry = LI() if qry[0] == 1: l = qry[1] cnt.add(l,1) scnt.add(l,l) elif qry[0] == 2: l,r = qry[1:] c = cnt.sum(l,r+1) s = scnt.sum(l,r+1) print(c,s) f += 1 if f == 0: print("Not Found!")