//Nayeem Shahriar Joy,Applied Physics & Electronic Engineering, University of Rajshahi.
import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;
import javax.swing.text.html.HTMLDocument.Iterator;
public class Joy{
public static void main(String[] args) {
Scanner io = new Scanner(System.in);
String s=io.nextLine();
int i;
for( i=0;i<s.length()-1;i++)
{
if(s.charAt(i)!=s.charAt(i+1))
{
System.out.print(s.charAt(i));
}
}
System.out.print(s.charAt(i));
System.out.println();
}
}
hello i need some favour
ReplyDeleteWhat Type of Favour ? Bro ?
Deleteemail me at kibetbrevin@gmail.com
ReplyDelete