import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt(); String pass = in.next(); int d=0; int u=0; int l=0; int i,j; int s=0; for(i=0;i=6) { System.out.println(ans); } else { ans=ans+(6-(ans+n)); System.out.println(ans); } } }