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