/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		String dt = 2 + "-" + 10 + "-" + 2017;
		SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
		try {
		    Date dataInterpretada = sdf.parse(dt);
		    
		    System.out.println(""+ sdf.format(dataInterpretada));
		} catch (ParseException e) {
		    e.printStackTrace();
		}
	}
}