<filename>BOJ/21000~21999/21800~21899/21867.py
input()
c=1
for i in input():
  if i not in "JAVA":
    print(i, end="")
    c=0

if c:
  print("nojava")

<filename>BOJ/21000~21999/21800~21899/21867.py
input()
c=1
for i in input():
  if i not in "JAVA":
    print(i, end="")
    c=0

if c:
  print("nojava")
