package a6;
public class B4 {
public static void main(String[] args) {
int three;
int five;
for(int i=1;i<=100;i++) {
if(i%3==0){
three = 1;
}else {
three = 0;
}
if(i%5==0) {
five = 1;
}else {
five = 0;
}
switch(three) {
case 0:
switch(five) {
case 0:
System.out.println(i);
break;
case 1:
System.out.println("Flop");
break;
}break;
case 1:
switch(five) {
case 0:
System.out.println("Flip");
break;
case 1:
System.out.println("FlipFlop");
break;
}break;
}
}
}
}
public class B4 {
public static void main(String[] args) {
int three;
int five;
for(int i=1;i<=100;i++) {
if(i%3==0){
three = 1;
}else {
three = 0;
}
if(i%5==0) {
five = 1;
}else {
five = 0;
}
switch(three) {
case 0:
switch(five) {
case 0:
System.out.println(i);
break;
case 1:
System.out.println("Flop");
break;
}break;
case 1:
switch(five) {
case 0:
System.out.println("Flip");
break;
case 1:
System.out.println("FlipFlop");
break;
}break;
}
}
}
}