import java.util.*; public class Main { public static void main(String[] args) { String input = "[email protected]:Monikute11 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:sM1151988 | Plan = u0623 u0633 u0627 u0633 u064A u0629 | Country = SA | Payment method = CC\n" + "[email protected]:Purpl3shoes | Plan = Basic | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Maro3170 | Plan = Premium | Country = CA | Payment method = CC\n" + "[email protected]:Michaelt1! | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:LFC4EVER | Plan = Basic | Country = CA | Payment method = CC\n" + "[email protected]:teachermom73 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Coltah08 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:boudie23 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:1acorkcity1 | Plan = Basic | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Ahmet.123 | Plan = Standart | Country = TR | Payment method = CC\n" + "[email protected]:Skywalker25! | Plan = Premium | Country = PL | Payment method = CC\n" + "[email protected]:Usedb00ks | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:CarpeDiem1 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Luca03matteo08 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:parola1949 | Plan = Standard | Country = RO | Payment method = CC\n" + "[email protected]:Toppdawg12! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Catchy13 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Jj8888888 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:kensin1992 | Plan = u6A19 u6E96 | Country = HK | Payment method = CC\n" + "[email protected]:Mastino00! | Plan = Standard | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:Ann032903! | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:Star88159! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:olly2766 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Sh1tshaker1 | Plan = Standard | Country = DK | Payment method = CC\n" + "[email protected]:Friendss2! | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:Andrew2611 | Plan = Basic | Country = US | Payment method = PAYPAL\n" + "[email protected]:Golden123 | Plan = Standard | Country = GB | Payment method = CC\n" + "[email protected]:Tobydog12! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Refuse72 | Plan = Basic | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Antonino9! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Frostfire | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:Pescara58 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Kaijaa24! | Plan = Premium | Country = US | Payment method = PAYPAL\n" + "[email protected]:Rainbow561! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:14Tigger! | Plan = Standard | Country = GB | Payment method = CC\n" + "[email protected]:Johnrust1! | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Jake.Cleo1 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Best1llest | Plan = Standard | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:Goat1965! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Wedwed123123 | Plan = Standard | Country = TR | Payment method = CC\n" + "[email protected]:MerlynD4! | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Raethorne91 | Plan = Basic | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Esther26 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Glencar156! | Plan = Premium | Country = IE | Payment method = PAYPAL\n" + "[email protected]:Hemmo1996 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:minimoira1408 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Sayang79 | Plan = Premium | Country = MY | Payment method = CC\n" + "[email protected]:geme4576 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:maxcatbaby1 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:12September | Plan = Basic | Country = IE | Payment method = PAYPAL\n" + "[email protected]:Isabella1184 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:ehreoTl1! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:celtic99 | Plan = Premium | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Rooweber2277 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:1122Sxsx | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:nadine2005 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Marine14! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:1630susie | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Samada247 | Plan = Standard | Country = IT | Payment method = CC\n" + "[email protected]:flowa831 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Jonas1998! | Plan = Standard | Country = DE | Payment method = EU_DIRECT_DEBIT\n" + "[email protected]:coleman1 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:Bunter123 | Plan = Basic | Country = IE | Payment method = CC\n" + "[email protected]:A.c.curiel | Plan = Standard | Country = FR | Payment method = CC\n" + "[email protected]:Upthecelts1 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:august15 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Tf8103004 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Llamaloo57! | Plan = Standard | Country = NZ | Payment method = CC\n" + "[email protected]:KLPotter2010! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Beachbum23! | Plan = Basic | Country = US | Payment method = PAYPAL\n" + "[email protected]:Cybercore2k | Plan = Premium | Country = DE | Payment method = DCB\n" + "[email protected]:Munich1979! | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:EllaGrace27 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Losttear1! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:01Sunshine | Plan = Basic | Country = IE | Payment method = PAYPAL\n" + "[email protected]:yeahboi1 | Plan = Premium | Country = MX | Payment method = CC\n" + "[email protected]:kelsi4995 | Plan = Standard | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Yanismehdi1 | Plan = Standard | Country = FR | Payment method = SFR\n" + "[email protected]:macadam1 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Shield6123 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Summermc1 | Plan = Premium | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Qwsaqwsa1! | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:statistics1 | Plan = Mobile | Country = PK | Payment method = CC\n" + "[email protected]:Ravens88! | Plan = Standard | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:rq57k7 | Plan = B u00E1sico | Country = CL | Payment method = CC\n" + "[email protected]:R0salind | Plan = Standard | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:tkwls2323 | Plan = uBCA0 uC774 uC2DD | Country = KR | Payment method = CC\n" + "[email protected]:Nathalie1373 | Plan = Standard | Country = FR | Payment method = PAYPAL\n" + "[email protected]:Savannah12 | Plan = Standard | Country = NZ | Payment method = CC\n" + "[email protected]:Manutdfan7 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:kmk9995932146 | Plan = Mobile | Country = IN | Payment method = UPI\n" + "[email protected]:1968Patrick | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Hexal0gy! | Plan = Standard | Country = IT | Payment method = PAYPAL\n" + "[email protected]:Minerva7896! | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Trommeltr22 | Plan = Basis | Country = DE | Payment method = SKY_GERMANY_BILLED\n" + "[email protected]:Imawesome123 | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:c1001956 | Plan = u9AD8 u7D1A | Country = TW | Payment method = CC\n" + "[email protected]:TORNADO1 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:82Ponomu | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Kfahey3644! | Plan = Standard | Country = GB | Payment method = PAYPAL\n" + "[email protected]:tt585858 | Plan = Standart | Country = TR | Payment method = CC\n" + "[email protected]:Johnpotterjp1 | Plan = Basic | Country = IE | Payment method = PAYPAL\n" + "[email protected]:aberdeen12 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:Iamaleo317 | Plan = Premium | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Matheus120 | Plan = Premium | Country = BR | Payment method = CC\n" + "[email protected]:Eimear01 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Jillian65 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Porridge003 | Plan = Basic | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Neymar14!! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Sadhbh01 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:god6027 | Plan = uBCA0 uC774 uC2DD | Country = KR | Payment method = CC\n" + "[email protected]:Blahimo5 | Plan = Standard | Country = GB | Payment method = CC\n" + "[email protected]:Barabbas1! | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:scooterq1 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:BellaSampson1! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:samsara1 | Plan = Premium | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Pineapple1! | Plan = Basic | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Jace1622 | Plan = Premium | Country = BM | Payment method = CC\n" + "[email protected]:Lola1220 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Julie1234! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:expo2002 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Lauren11 | Plan = Premium | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:adrian1964 | Plan = Premium | Country = RO | Payment method = CC\n" + "[email protected]:haybale5 | Plan = Basic | Country = US | Payment method = PAYPAL\n" + "[email protected]:beyza123 | Plan = Temel | Country = TR | Payment method = CC\n" + "[email protected]:Ulysses71 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Fatman1973 | Plan = Basic | Country = IE | Payment method = PAYPAL\n" + "[email protected]:7933499Black | Plan = Premium | Country = SG | Payment method = CC\n" + "[email protected]:Walter_011 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Knicks11 | Plan = Standard | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:agathan47 | Plan = Standard | Country = FR | Payment method = CC\n" + "[email protected]:Donegal1234 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Rockon123! | Plan = uD504 uB9AC uBBF8 uC5C4 | Country = KR | Payment method = CC\n" + "[email protected]:Celtic88 | Plan = Standard | Country = AU | Payment method = CC\n" + "[email protected]:Freeze13 | Plan = Standard | Country = TH | Payment method = DCB\n" + "[email protected]:Filamed11 | Plan = Premium | Country = BE | Payment method = PAYPAL\n" + "[email protected]:Shanku2014! | Plan = Premium | Country = IN | Payment method = CC\n" + "[email protected]:Hln2719Ntn | Plan = Standard | Country = IE | Payment method = PAYPAL\n" + "[email protected]:axdws123! | Plan = Standard | Country = DE | Payment method = PAYPAL\n" + "[email protected]:olga1988 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:anakanjing23 | Plan = Premium | Country = ID | Payment method = MOBILE_WALLET\n" + "[email protected]:decoy2008 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Perrisca1443 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:David2002 | Plan = Premium | Country = AU | Payment method = CC\n" + "[email protected]:qwerty1234q | Plan = Premium | Country = IL | Payment method = CC\n" + "[email protected]:Darcyg01 | Plan = Standard | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:mh246810! | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:as3488441182 | Plan = Premium | Country = IT | Payment method = CC\n" + "[email protected]:Denise88 | Plan = Premium | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:Pkr55mjr | Plan = Basic | Country = DK | Payment method = CC\n" + "[email protected]:Pailhares07! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Migliana42 | Plan = Standard | Country = IT | Payment method = CC\n" + "[email protected]:Betty1973 | Plan = Premium | Country = DE | Payment method = SKY_GERMANY_BILLED\n" + "[email protected]:Acer1234 | Plan = Mobile | Country = MY | Payment method = CC\n" + "[email protected]:Silent4pass | Plan = Standart | Country = TR | Payment method = CC\n" + "[email protected]:savannah11 | Plan = Premium | Country = US | Payment method = COMCAST\n" + "[email protected]:Svadler2001! | Plan = Premium | Country = DE | Payment method = PAYPAL\n" + "[email protected]:eKeane91 | Plan = Basic | Country = IE | Payment method = ITUNES\n" + "[email protected]:Cheetos667138! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:pog488401 | Plan = Premium | Country = US | Payment method = ITUNES\n" + "[email protected]:Daragh10 | Plan = Basic | Country = IE | Payment method = CC\n" + "[email protected]:aaliyah2 | Plan = Standard | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:Summertime1! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:tu5c4ny5 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Marketday1969 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:daddywi1 | Plan = Premium | Country = IE | Payment method = PAYPAL\n" + "[email protected]:lisnagry99 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:Valj1351! | Plan = Premium | Country = CA | Payment method = CC\n" + "[email protected]:Seaneoin1985 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:force1994 | Plan = uD504 uB9AC uBBF8 uC5C4 | Country = KR | Payment method = CC\n" + "[email protected]:dublin5470 | Plan = Basic | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:chosj8115! | Plan = uD504 uB9AC uBBF8 uC5C4 | Country = KR | Payment method = KT\n" + "[email protected]:Seamroga83 | Plan = Premium | Country = NL | Payment method = CC\n" + "[email protected]:hasan1905 | Plan = Standart | Country = TR | Payment method = CC\n" + "[email protected]:26Crestfield | Plan = Standard | Country = IE | Payment method = PAYPAL\n" + "[email protected]:Jeep1121! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Talita2012 | Plan = Standard | Country = CA | Payment method = CC\n" + "[email protected]:Computer2! | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:2idrigni | Plan = Est u00E1ndar | Country = ES | Payment method = CC\n" + "[email protected]:goukakyuu1 | Plan = Premium | Country = US | Payment method = TMOBILE_US_BILLED\n" + "[email protected]:rebel6189 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:sergio1991 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:almita10 | Plan = Est u00E1ndar | Country = AR | Payment method = CC\n" + "[email protected]:Rupert73 | Plan = Basic | Country = GB | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:anse69480 | Plan = Essentiel | Country = FR | Payment method = CC\n" + "[email protected]:monitahh1 | Plan = Basic | Country = US | Payment method = ITUNES\n" + "[email protected]:samsar33! | Plan = Premium | Country = US | Payment method = COMCAST\n" + "[email protected]:kylla31102011 | Plan = Standard | Country = FR | Payment method = PAYPAL\n" + "[email protected]:Akira2501! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Bachelor66 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:aleend01 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:medivial99 | Plan = Premium | Country = RS | Payment method = CC\n" + "[email protected]:Zer0st4r1 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:1311lgtg | Plan = Premium | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:Jacob1023 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:erilis123 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:wldus5457! | Plan = uC2A4 uD0E0 uB2E4 uB4DC | Country = KR | Payment method = LG_UPLUS_BILLED\n" + "[email protected]:dexter77 | Plan = Standard | Country = US | Payment method = ITUNES\n" + "[email protected]:Handball21 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Bubblewine1 | Plan = Basic | Country = GB | Payment method = PAYPAL\n" + "[email protected]:orange85! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:jickles2 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:bearcats12 | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:dandan123 | Plan = Premium | Country = CA | Payment method = CC\n" + "[email protected]:Gypsy9Rose | Plan = Standard | Country = GB | Payment method = PAYPAL\n" + "[email protected]:Castlehill16 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:R4n1the414 | Plan = Basic | Country = GB | Payment method = PAYPAL\n" + "[email protected]:pratik2003 | Plan = Mobile | Country = IN | Payment method = UPI\n" + "[email protected]:Krusty91! | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:prayinglove | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Darrell78! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Pjmaxash1 | Plan = Premium | Country = GB | Payment method = CC\n" + "[email protected]:Australia1! | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Coco2710! | Plan = Premium | Country = MQ | Payment method = CC\n" + "[email protected]:Aisling11 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Hadrien95! | Plan = Essentiel | Country = FR | Payment method = PAYPAL\n" + "[email protected]:airbus340 | Plan = Premium | Country = CZ | Payment method = PAYPAL\n" + "[email protected]:zxcv4256 | Plan = uD504 uB9AC uBBF8 uC5C4 | Country = KR | Payment method = CC\n" + "[email protected]:Bernard2006 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:demples14 | Plan = Premium | Country = US | Payment method = ITUNES\n" + "[email protected]:senior10! | Plan = Premium | Country = US | Payment method = ITUNES\n" + "[email protected]:Burger66 | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:MiSlobo99 | Plan = Standard | Country = PT | Payment method = PAYPAL\n" + "[email protected]:avril202 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:whitwick14 | Plan = Basic | Country = GB | Payment method = CC\n" + "[email protected]:Bproctor90 | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Jo1994jo | Plan = Standard | Country = FR | Payment method = CC\n" + "[email protected]:Dag1ger23! | Plan = Standard | Country = US | Payment method = PAYPAL\n" + "[email protected]:hyper154 | Plan = u0E21 u0E37 u0E2D u0E16 u0E37 u0E2D | Country = TH | Payment method = CC\n" + "[email protected]:jhoeiy333 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:ashroadnumber10 | Plan = Standard | Country = IE | Payment method = ITUNES\n" + "[email protected]:Biograde1 | Plan = Premium | Country = IE | Payment method = CC\n" + "[email protected]:eastpak123 | Plan = Premium | Country = DE | Payment method = EU_DIRECT_DEBIT\n" + "[email protected]:019Carpet | Plan = Premium | Country = US | Payment method = ITUNES\n" + "[email protected]:26mayankmax | Plan = Basic | Country = IN | Payment method = UPI\n" + "[email protected]:Millieme1 | Plan = Standard | Country = GB | Payment method = PAYPAL\n" + "[email protected]:Elono2005 | Plan = Standard | Country = CA | Payment method = CC\n" + "[email protected]:T1najaden | Plan = Basic | Country = IE | Payment method = CC\n" + "[email protected]:Kisstolci_1 | Plan = Standard | Country = CH | Payment method = CC\n" + "[email protected]:acefire22 | Plan = u0645 u0645 u064A u0632 u0629 | Country = DK | Payment method = CC\n" + "[email protected]:Mineralwasser23! | Plan = Basis | Country = DE | Payment method = EU_DIRECT_DEBIT\n" + "[email protected]:Jalany#1 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Michael0517! | Plan = Premium | Country = US | Payment method = ITUNES\n" + "[email protected]:Lock1215! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:ogomin801 | Plan = u0421 u0442 u0430 u043D u0434 u0430 u0440 u0442 u043D u044B u0439 | Country = UA | Payment method = CC\n" + "[email protected]:Ciarrai1 | Plan = Premium | Country = IE | Payment method = SKY_UK_IE_BILLED\n" + "[email protected]:spider05 | Plan = Basis | Country = DE | Payment method = PAYPAL\n" + "[email protected]:Letmein12! | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Sublime12! | Plan = Basic | Country = US | Payment method = CC\n" + "[email protected]:Tiddles15! | Plan = Standard | Country = IE | Payment method = PAYPAL\n" + "[email protected]:nic333kuba! | Plan = Standard | Country = US | Payment method = CC\n" + "[email protected]:Kappa1911 | Plan = Premium | Country = US | Payment method = COMCAST\n" + "[email protected]:Hercules72 | Plan = Essentiel | Country = FR | Payment method = CC\n" + "[email protected]:WarCraft1992 | Plan = Standard | Country = DE | Payment method = EU_DIRECT_DEBIT\n" + "[email protected]:Lanciay10 | Plan = Standard | Country = IE | Payment method = CC\n" + "[email protected]:Lingling1 | Plan = Premium | Country = US | Payment method = CC\n" + "[email protected]:Emploi020967! | Plan = Standard | Country = FR | Payment method = CC\n" + "[email protected]:Servonio1992! | Plan = Standard | Country = IT | Payment method = CC\n" + "[email protected]:Tonate53 | Plan = Standard | Country = US | Payment method = CC\n"; String[] array = input.split("\n"); for(int i=0; i<array.length; i++) { String[] ar = array[i].split(":"); String fin = ar[0]+":"+ar[1].split(" ")[0]; System.out.println(fin); } } }
Write, Run & Share Java code online using OneCompiler's Java online compiler for free. It's one of the robust, feature-rich online compilers for Java language, running the Java LTS version 17. Getting started with the OneCompiler's Java editor is easy and fast. The editor shows sample boilerplate code when you choose language as Java and start coding.
OneCompiler's Java online editor supports stdin and users can give inputs to the programs using the STDIN textbox under the I/O tab. Using Scanner class in Java program, you can read the inputs. Following is a sample program that shows reading STDIN ( A string in this case ).
import java.util.Scanner;
class Input {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Enter your name: ");
String inp = input.next();
System.out.println("Hello, " + inp);
}
}
OneCompiler supports Gradle for dependency management. Users can add dependencies in the build.gradle
file and use them in their programs. When you add the dependencies for the first time, the first run might be a little slow as we download the dependencies, but the subsequent runs will be faster. Following sample Gradle configuration shows how to add dependencies
apply plugin:'application'
mainClassName = 'HelloWorld'
run { standardInput = System.in }
sourceSets { main { java { srcDir './' } } }
repositories {
jcenter()
}
dependencies {
// add dependencies here as below
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
}
Java is a very popular general-purpose programming language, it is class-based and object-oriented. Java was developed by James Gosling at Sun Microsystems ( later acquired by Oracle) the initial release of Java was in 1995. Java 17 is the latest long-term supported version (LTS). As of today, Java is the world's number one server programming language with a 12 million developer community, 5 million students studying worldwide and it's #1 choice for the cloud development.
short x = 999; // -32768 to 32767
int x = 99999; // -2147483648 to 2147483647
long x = 99999999999L; // -9223372036854775808 to 9223372036854775807
float x = 1.2;
double x = 99.99d;
byte x = 99; // -128 to 127
char x = 'A';
boolean x = true;
When ever you want to perform a set of operations based on a condition If-Else is used.
if(conditional-expression) {
// code
} else {
// code
}
Example:
int i = 10;
if(i % 2 == 0) {
System.out.println("i is even number");
} else {
System.out.println("i is odd number");
}
Switch is an alternative to If-Else-If ladder and to select one among many blocks of code.
switch(<conditional-expression>) {
case value1:
// code
break; // optional
case value2:
// code
break; // optional
...
default:
//code to be executed when all the above cases are not matched;
}
For loop is used to iterate a set of statements based on a condition. Usually for loop is preferred when number of iterations is known in advance.
for(Initialization; Condition; Increment/decrement){
//code
}
While is also used to iterate a set of statements based on a condition. Usually while is preferred when number of iterations are not known in advance.
while(<condition>){
// code
}
Do-while is also used to iterate a set of statements based on a condition. It is mostly used when you need to execute the statements atleast once.
do {
// code
} while (<condition>);
Class is the blueprint of an object, which is also referred as user-defined data type with variables and functions. Object is a basic unit in OOP, and is an instance of the class.
class
keyword is required to create a class.
class Mobile {
public: // access specifier which specifies that accessibility of class members
string name; // string variable (attribute)
int price; // int variable (attribute)
};
Mobile m1 = new Mobile();
public class Greeting {
static void hello() {
System.out.println("Hello.. Happy learning!");
}
public static void main(String[] args) {
hello();
}
}
Collection is a group of objects which can be represented as a single unit. Collections are introduced to bring a unified common interface to all the objects.
Collection Framework was introduced since JDK 1.2 which is used to represent and manage Collections and it contains:
This framework also defines map interfaces and several classes in addition to Collections.
Collection | Description |
---|---|
Set | Set is a collection of elements which can not contain duplicate values. Set is implemented in HashSets, LinkedHashSets, TreeSet etc |
List | List is a ordered collection of elements which can have duplicates. Lists are classified into ArrayList, LinkedList, Vectors |
Queue | FIFO approach, while instantiating Queue interface you can either choose LinkedList or PriorityQueue. |
Deque | Deque(Double Ended Queue) is used to add or remove elements from both the ends of the Queue(both head and tail) |
Map | Map contains key-values pairs which don't have any duplicates. Map is implemented in HashMap, TreeMap etc. |