#include <iostream>
using namespace std;
int main() {
cin >>a;
cin >>b;
if (a<b) {
cout <<a;
}
if (b<a) {
cout <<b;
return 0;
#include <iostream>
using namespace std;
int main() {
cin >>a;
cin >>b;
if (a<b) {
cout <<a;
}
if (b<a) {
cout <<b;
}
return 0;
}