public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int number = input.nextInt();
System.out.print(8 + ",");
if (number >= 8 || number <= 28) {
if (number % 2 == 0) {
number = number / 2; // even number
System.out.print(number + ",");
} else {
number = number * 5; // odd number
System.out.print(number + ",");
}
}
}
}