Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List=[]
- n=int(input())
- for i in range(n):
- List.append(input().split())
- if List[i][1]=="p":
- List[i][1]=1
- elif List[i][1]=="g":
- List[i][1]=2
- elif List[i][1]=="s":
- List[i][1]=3
- else:
- List[i][1]=4
- edu=input()
- if edu=="p":
- edu=1
- elif edu=="g":
- edu=2
- elif edu=="s":
- edu=3
- else:
- edu=4
- for j in range(n):
- if edu <= List[j][1]:
- print(List[j][0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement