import java.util.*; public class Main { static long ck(long total, long sl){ if(sl>10) return total/20; if(sl>=8) return total/50; if(sl>=5) return total/100; return 0; } static String getCode(String name){ String[] a = name.split("\\s+"); return Character.toString(a[0].charAt(0)).toUpperCase() + Character.toString(a[1].charAt(0)).toUpperCase(); } static class ob { String code, name; long ck, sum, total; public ob(String code, String name, long sl, long price){ this.code = code; this.name = name; this.total = price*sl; this.ck = ck(this.total, sl); this.sum = this.total - this.ck; } public String toString() { return code + " " + name + " " + ck + " " + sum; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList a = new ArrayList<>(); HashMap hm = new HashMap<>(); for(int i=0;i System.out.println(e)); } }