import java.io.*; import java.util.*; public class yc1 { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); String s = buf.readLine(); int i =0; while(s.charAt(i)!='#')i++; StringBuilder ans = new StringBuilder(); for(i++;s.charAt(i)!='#';i++)ans.append(s.charAt(i)); System.out.println(ans); } }