import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
String[] array
= data.
split("/"); if (!(array.length == 3)) return data;
data = "";
return data.substring(0, data.length() -1);
}
public static void main
(String[] args
) { System.
out.
println(mostraData
("10/2")); System.
out.
println(mostraData
("10/2/2015")); System.
out.
println(mostraData
("5/2/2015")); System.
out.
println(mostraData
("10/12/15")); }
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgoKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgU3RyaW5nIG1vc3RyYURhdGEoU3RyaW5nIGRhdGEpIHsKICAgICAgICBTdHJpbmdbXSBhcnJheSA9IGRhdGEuc3BsaXQoIi8iKTsKICAgICAgICBpZiAoIShhcnJheS5sZW5ndGggPT0gMykpIHJldHVybiBkYXRhOwogICAgICAgIGRhdGEgPSAiIjsKICAgICAgICBmb3IgKFN0cmluZyBlYWNoIDogYXJyYXkpCiAgICAgICAgICAgIGRhdGEgKz0gU3RyaW5nLmZvcm1hdCgiJTAyZC8iLCBJbnRlZ2VyLnBhcnNlSW50KGVhY2gpKTsKICAgICAgICByZXR1cm4gZGF0YS5zdWJzdHJpbmcoMCwgZGF0YS5sZW5ndGgoKSAtMSk7CiAgICB9CgogICAgcHVibGljIHN0YXRpYyB2b2lkIG1haW4oU3RyaW5nW10gYXJncykgewogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihtb3N0cmFEYXRhKCIxMC8yIikpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihtb3N0cmFEYXRhKCIxMC8yLzIwMTUiKSk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKG1vc3RyYURhdGEoIjUvMi8yMDE1IikpOwogICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbihtb3N0cmFEYXRhKCIxMC8xMi8xNSIpKTsKICAgIH0KfQ==