#include<iostream> using namespace std; int main(){ int a,b,i; for(i=1;i<=50;i++){ cin>>a>>b; if(b>=80)cout<<a<<' '<<b<<endl; } return 0; }