#include<bits/stdc++.h> using namespace std; int a[10005]; int main() { int n,a,b,s=0; cin>>n; cin>>a>>b; s=s+a+(int)sqrt(b); cout<<s; return 0; }