fork download
import java.util.*;
import java.lang.*;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String temp;
        Scanner sc = new Scanner(System.in);
        
        while(sc.hasNextLine()) {
            temp = sc.nextLine();
            String[] strs = temp.split(",");
            for (int i = 0; i < strs.length; ++i) {
                System.out.println(strs[i]);
            }
            System.out.println("===========================================");
        }
	}
}
Success #stdin #stdout 0.06s 246080KB
stdin
1,"Goroka","Goroka","Papua New Guinea","GKA","AYGA",-6.081689,145.391881,5282,10,"U"
2,"Madang","Madang","Papua New Guinea","MAG","AYMD",-5.207083,145.7887,20,10,"U"
3,"Mount Hagen","Mount Hagen","Papua New Guinea","HGU","AYMH",-5.826789,144.295861,5388,10,"U"
4,"Nadzab","Nadzab","Papua New Guinea","LAE","AYNZ",-6.569828,146.726242,239,10,"U"
5,"Port Moresby Jacksons Intl","Port Moresby","Papua New Guinea","POM","AYPY",-9.443383,147.22005,146,10,"U"
6,"Wewak Intl","Wewak","Papua New Guinea","WWK","AYWK",-3.583828,143.669186,19,10,"U"
7,"Narsarsuaq","Narssarssuaq","Greenland","UAK","BGBW",61.160517,-45.425978,112,-3,"E"
8,"Nuuk","Godthaab","Greenland","GOH","BGGH",64.190922,-51.678064,283,-3,"E"
9,"Sondre Stromfjord","Sondrestrom","Greenland","SFJ","BGSF",67.016969,-50.689325,165,-3,"E"
10,"Thule Air Base","Thule","Greenland","THU","BGTL",76.531203,-68.703161,251,-4,"E"
stdout
1
"Goroka"
"Goroka"
"Papua New Guinea"
"GKA"
"AYGA"
-6.081689
145.391881
5282
10
"U"
===========================================
2
"Madang"
"Madang"
"Papua New Guinea"
"MAG"
"AYMD"
-5.207083
145.7887
20
10
"U"
===========================================
3
"Mount Hagen"
"Mount Hagen"
"Papua New Guinea"
"HGU"
"AYMH"
-5.826789
144.295861
5388
10
"U"
===========================================
4
"Nadzab"
"Nadzab"
"Papua New Guinea"
"LAE"
"AYNZ"
-6.569828
146.726242
239
10
"U"
===========================================
5
"Port Moresby Jacksons Intl"
"Port Moresby"
"Papua New Guinea"
"POM"
"AYPY"
-9.443383
147.22005
146
10
"U"
===========================================
6
"Wewak Intl"
"Wewak"
"Papua New Guinea"
"WWK"
"AYWK"
-3.583828
143.669186
19
10
"U"
===========================================
7
"Narsarsuaq"
"Narssarssuaq"
"Greenland"
"UAK"
"BGBW"
61.160517
-45.425978
112
-3
"E"
===========================================
8
"Nuuk"
"Godthaab"
"Greenland"
"GOH"
"BGGH"
64.190922
-51.678064
283
-3
"E"
===========================================
9
"Sondre Stromfjord"
"Sondrestrom"
"Greenland"
"SFJ"
"BGSF"
67.016969
-50.689325
165
-3
"E"
===========================================
10
"Thule Air Base"
"Thule"
"Greenland"
"THU"
"BGTL"
76.531203
-68.703161
251
-4
"E"
===========================================