/*
* PrimeClass.java
*
* Created on 28 Μάρτιος 2008, 8:49 πμ
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
import javax.swing.JOptionPane;
import java.util.Calendar;
/**
*
* @author students
*/
public class PrimeClass {
/** Creates a new instance of PrimeClass */
public PrimeClass() {
}
public static void main(String[]args) {
boolean findIt=true;
String in=JOptionPane.showInputDialog(null, "Dwse ton prwto arithmo: ");
int x=Integer.parseInt(in);
for(int n=2; n<x; n++)
{
int remainder=x%n;
if (remainder==0){
findIt=false;
break;
}
}
if (findIt)
System.out.println("Protos");
else
System.out.println("Oxi Protos");
}
}