public class Main {
	public static void main(String [] args) {
		for(Integer i = 1; i <= 100; ++i) {
			try {
				try {
					throw new Error(new String[]{"buzz"}[i%5]);
				} catch(Throwable b) {
					try {
						String.format("", 1/(i%3), (IndexOutOfBoundsException) b);
						System.out.print(i);
					} catch (ArithmeticException f) {
						System.out.print("fizz");
					} finally {
						System.out.print(((Error) b).getMessage());
					}
				}
			} catch(Exception x) {}
			System.out.println();
		}
	}
}