import java.util.Scanner;
import java.io.*;
public class Aznprdgy {
public static Scanner sc;
public static String name;
public static int damage;
public static int accuracy;
public static String w1, w2, w3, w4, w5, w6, w7;
public static int d1, d2, d3, d4, d5, d6, d7;
public static int a1, a2, a3, a4, a5, a6, a7;
public static void main(String[] args){
try{
File data = new File ("DATA.DAT");
sc = new Scanner(data);
}
catch(Exception e){
System.out.println("Error: Data file not found! " + e);
}
sc.useDelimiter(",");
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon1(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon2(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon3(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon4(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon5(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon6(name, damage, accuracy);
name = sc.next();
damage = sc.nextInt();
accuracy = sc.nextInt();
Weapon7(name, damage, accuracy);
//Print out each gun info (name, damage, accuracy)
System.out.println(w1 + "\n" + d1 + " " + a1);
System.out.println(w2 + "\n" + d2 + " " + a2);
System.out.println(w3 + "\n" + d3 + " " + a3);
System.out.println(w4 + "\n" + d4 + " " + a4);
System.out.println(w5 + "\n" + d5 + " " + a5);
System.out.println(w6 + "\n" + d6 + " " + a6);
System.out.println(w7 + "\n" + d7 + " " + a7);
}
public static void Weapon1(String w1name, int w1damage, int w1accuracy){
w1 = w1name;
d1 = w1damage;
a1 = w1accuracy;
}
public static void Weapon2(String w2name, int w2damage, int w2accuracy){
w2 = w2name;
d2 = w2damage;
a2 = w2accuracy;
}
public static void Weapon3(String w3name, int w3damage, int w3accuracy){
w3 = w3name;
d3 = w3damage;
a3 = w3accuracy;
}
public static void Weapon4(String w4name, int w4damage, int w4accuracy){
w4 = w4name;
d4 = w4damage;
a4 = w4accuracy;
}
public static void Weapon5(String w5name, int w5damage, int w5accuracy){
w5 = w5name;
d5 = w5damage;
a5 = w5accuracy;
}
public static void Weapon6(String w6name, int w6damage, int w6accuracy){
w6 = w6name;
d6 = w6damage;
a6 = w6accuracy;
}
public static void Weapon7(String w7name, int w7damage, int w7accuracy){
w7 = w7name;
d7 = w7damage;
a7 = w7accuracy;
}
}