#include <iostream>
#include<bits/stdc++.h>
#define fo(i,start,end) for(int i=start;i<end;i++)
using namespace std;

int main() {
	// your code goes here
	int arr[] = {3,2,1,2,5};
	int k = 4;
	int n = 4;
	fo(i,0,n){
		fo(j,i+1,n){
			if(arr[i]+arr[j] == k){
				cout<<"Pairs are: {"<<arr[i]<<","<<arr[j]<<"}"<<endl;
				return 0;
			}
		}
	}
	cout<<"No such pair found in the array"<<endl;
	return 0;
}