#include<bits/stdc++.h> using namespace std; int main(){ int n,x,y; cin>>n; cin>>x>>y; y=sqrt(x); cout<<x+y; }