14 lines
467 B
Python
14 lines
467 B
Python
#!/usr/bin/env python3
|
|
import pandas as pd
|
|
import re
|
|
import sys
|
|
# sort | uniq -c
|
|
#train = pd.read_csv("./train/in.tsv.xz", delimiter='\t')
|
|
#import sys
|
|
#for line in sys.stdin
|
|
#if re.search(r'UFO', line) print("P")
|
|
for line in sys.stdin:
|
|
if re.search(r'(ufo|lol|camera|picture|contact|phenomen|photo|paralysis|haunted|alien|demon|ghost|levitation|paranormal|spirit|telekinesis|flying|fake|sky|dream)', line.lower()):
|
|
print("P")
|
|
else:
|
|
print("S") |