import java.util.*; public class Main { static long off(String s, long total){ if (s.charAt(s.length()-1) == '1') return total/2; return total*3/10; } static class ob { String code, name, stt; long total, sum, off; public ob(String name, String code, long price, long sl){ this.name = name; this.code = code; this.stt = code.substring(1,4); this.total = price*sl; this.off = off(code, this.total); this.sum = this.total - this.off; } public String toString() { return name + " " + this.code + " " + this.stt + " " + this.off + " " + this.sum; } } public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); ArrayList a = new ArrayList<>(); for(int i=0;i System.out.println(e)); } }